Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

broadcast a message to all logged in users

 
rajesh kumar jhaver
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I broadcast a message to all logged in users, when my system goes for maintenance. During Maintenance, my Database server will be down and webserver will be up. I am using IIS as webserver, ServletExec as Servlet Engine and JSP.
Thanks in Advance,
Rajesh Jhaver
 
Juanjo Bazan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For instance you could do the following:
For any request from your logged users needing a DB query, first of all check if the DB is up.
If not, capture the exception and redirect them to a error/informative page.
HTH
 
Younes Essouabni
Ranch Hand
Posts: 479
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When your system goes for maintenance, if your servlet context is going down, you may use the ServletContextListener interface.
If I remember well, there is a method: public void ServletContextDestroyed (Servletcontextevent sce), that you may implement.
I think there is a way out there.
I hope it helps
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic