hi!

> 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".
>

you're right: I must have missed this one
http://swjscmail1.java.sun.com/cgi-bin/wa?A2=ind0111&L=servlet-interest&D=0&;
P=52856 :-(

i'm aware of the "threads in servlets"-thing though  (already read [1])!

>  There are further details (and some alternate
> suggestions) at:
>
[1]
>  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

Reply via email to