wood burning stoves 2.0*
The moose likes Servlets and the fly likes Displaying maintenance message while app server shutdown Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Displaying maintenance message while app server shutdown" Watch "Displaying maintenance message while app server shutdown" New topic
Author

Displaying maintenance message while app server shutdown

Heonkoo Lee
Ranch Hand

Joined: Feb 10, 2005
Posts: 85
Hi Ranchers,

Can you please provide any pointers to how to gracefully display maintenance message in case of shutting down the server, instead of error message displayed to the client? Seems like I need another server in front.

Any help would be much appreciated.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


Seems like I need another server in front

Indeed you do. A typical configuration for a web app might be to have a web server (such as Apache HTTP Server) in front of the servlet container which serves static content. If there is, then you can just serve your "appliction not available" page here.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
jQuery in Action, 2nd edition
 
subject: Displaying maintenance message while app server shutdown