Hi, You cannot. At least not within the bounds of standard HTTP- / Servlet- / JSP-based Web Applications.
HTTP is strictly a client-driven protocol. There is no persistent connection between the server and the client that could be used to send unsolicited notifications to clients. About the best you can do is record in the server an indication that the server will be going down in the near future (perhaps an indication of the actual time at which the shut-down will occur). Then Web Apps or pages that want to notify the user of the pending shut-down can interrogate that internal status indication and alter, amend or replace their usual response with one that includes the upcoming shutdown notice. Randall Schulz Mountain View, CA USA At 19:41 2002-08-20, KL OOI wrote: >Hi all, > >I have an application running on Tomcat. If I want to shutdown for >maintenance. How do I broadcast a message to all the on-line user ? >Kindly provide any pointer if possible. > >Thanks. > >Regards, >KL ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html