Thanks, I will try either ways suggested by some of you.
Regards
Liwen
----- Original Message -----
From: Frankie <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 14, 2000 9:17 AM
Subject: Re: where to put the loop?
> if you can put the code snippet in another new Thread?
>
> it can be a inner class of current class if needed.
> -----------------------------------------------------------------
> Frankie Wu, Senior Software Engineer
> http://www.eachnet.com
> Tel(O):86-21-52340871*635
> Fax(0):86-21-32170096
> E-mail:[EMAIL PROTECTED]
> Eachnet.com - CHINA'S LARGEST ON-LINE CONSUMER TRADING COMMUNITY
>
> ----- Original Message -----
> From: "Liwen Chen" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 13, 2000 11:44 AM
> Subject: where to put the loop?
>
>
> > 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
>
>
___________________________________________________________________________
> 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
>
___________________________________________________________________________
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