there are a lot of timer implementations out there.
the easiest way is to use java.util.Timer w. a TimerTask.
use a ContextListener to create a timer and its timed task and bind it to
the context.

-----Original Message-----
From: Daniel Joshua [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 20, 2004 3:58 AM
To: [EMAIL PROTECTED]
Subject: What is the best way to add a timer to a servlet?


Hi,

How would you add a timer to your web app so that it triggers a method every
X minutes?

Btw, I am using Tomcat 5.x


Regards,
Daniel

___________________________________________________________________________
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

Reply via email to