Hi, there:

I want to write a servlet to check information every 5 minutes. I use the
following code
snippet:

while (true) {
    try {
        Thread.sleep(300000);

        // Statements to accomplish the task
    } catch (Exception e) {}
}

Where is the best place to put this code snippet?

Thanks!

Regards
Liwen

___________________________________________________________________________
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