>>> Henning Brune <[EMAIL PROTECTED]> 09-Jun-00 11:27:26 AM
>>>
>Now we want to restart it every 24 hours. My first idea
>is to use a thread that sleeps this long time an then does
>the restart. Are there any drawbacks with this solution ?
No... that's fine.
You will have one extra thread but that's not really a big deal is
it? Especially since it is asleep most of the time.
Mke sure you set the priority high enough so that when it has to cut
in it can.
>Is there any function in the servlet API or J2EE for realizing
>time scheduled tasks ?
Yes. Threads, Thread.sleep() and Thread.wait().
Nic Ferrier
___________________________________________________________________________
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