Hello? HTTP is request-response, remember? He can't preemptively respond before receiving a request.
-----Original Message----- From: Cédric Viaud [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 9:01 AM To: [EMAIL PROTECTED] Subject: Re: How to broadcast a message This is to notice users BEFORE the server shutdown. That was the question i understood. But maybe i am wrong. Regards, Cédric ----- Original Message ----- From: "Galbreath, Mark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 21, 2002 2:58 PM Subject: Re: How to broadcast a message > Uh, how's he gonna do that while Tomcat is down? > > -----Original Message----- > From: Cédric Viaud [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 21, 2002 5:31 AM > To: [EMAIL PROTECTED] > Subject: Re: How to broadcast a message > > > Or maybe, but it is an early idea (my brain is yet sleeping), you could use > a servletFilter if you use Servlet 2.3. > > So your front filter will redirect users to an HTML page whith your message > before processing requests. The filter could do it or not depending on value > in the application context. > > The servletFilter way avoid to modify all your JSPs. You just have to modify > your web.xml to indicate servlet filtering for all yours Servlet/JSP. > > Hope this help, > > regards, > > Cédric > > ----- Original Message ----- > From: "Richard Yee" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, August 21, 2002 6:05 AM > Subject: Re: How to broadcast a message > > > > You could have all of your JSP's check for the presence of an application > > variable. If the variable is found, a JavaScript popup window can be made > > to appear the next time the server sends a response and the appropriate > > message can be displayed. Note that the message will only appear once a > > client makes a request to the server. If a client doesn't send a request > to > > the server between the time that you decide to send the message and the > > time you shut the server down, they won't get a notification. There are > > other things you could possibly do such as run applets on the client's > > browser and have the server send messages to the applets, but I personally > > don't think it is worth the trouble and added overhead. > > > > Regards, > > > > Richard > > > > At 10:41 AM 8/21/2002 +0800, you 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 > > > > > ___________________________________________________________________________ > > 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 > > > > ___________________________________________________________________________ > 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 > > ___________________________________________________________________________ > 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 > ___________________________________________________________________________ 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 ___________________________________________________________________________ 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