Create a new thread and use the thread.yeild(millis) method to cause it to
wait until time has expired.  24 hours = 86,400,000 milliseconds

Simple but maybe not very efficient.

David Clearman
[EMAIL PROTECTED]

>From: John McDonald <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Recurring time events
>Date: Sat, 18 Mar 2000 15:55:47 -0800
>
>Alright. I want my application to do something every 24 hours. I know how
>to get the time, but I can't get the time in a loop and wait for it to be
>the time I need!. Anyone have any ideas. Thanks.
>
>-jdm-
>thought coordinator/tech weenie
>ClientScience.com

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.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