Michael Weller wrote: > > start a separate thread in one of your servlet's init(...). let this thread > check the value and update if necessary (look at java.util.Timer as well). >
You might want to be a bit careful about starting threads. If you decide it's the best course, and you're using a 2.3 compliant container, use a ServletContextListener (instead of init()), and make sure that you properly shut down the thread when the Context shuts down. Otherwise you can end up with a "thread leak". There are further details (and some alternate suggestions) at: http://www.distributopia.com/servlet_stuff/background_threads.html -- Christopher St. John [EMAIL PROTECTED] DistribuTopia http://www.distributopia.com ___________________________________________________________________________ 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
