• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to display error page if webserver as well as application server is down  RSS feed

 
Himanshu Bhatnagar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i know that if my Application server is down i can configure web.xml to display an custom Error page ..!!
but what to do if
case 1) My Web server is down how could i be able to display an error. but Application server and DB connection is UP
i have to 1 web server and 1 app server with me .!!

can some thing be done on load balancer or cluster..!!

case2)
Both Webserver as well as Application server is down



 
Prashant Chindhade
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Himanshu Bhatnagar wrote:Hi,
i know that if my Application server is down i can configure web.xml to display an custom Error page ..!!
but what to do if
case 1) My Web server is down how could i be able to display an error. but Application server and DB connection is UP
i have to 1 web server and 1 app server with me .!!

can some thing be done on load balancer or cluster..!!

case2)
Both Webserver as well as Application server is down




how will your error page which is in your application deployed on web server will be rendered when this web server is down. your browser will not be able to connect to your application. I think you can't do anything about it.

if you application is down than you can show error page.
In your web.xml write this.


for each error code the procedure will be same.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!