• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

broadcast a message to all logged in users

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 479
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic