Re: What is the best way to add a timer to a servlet?

Guy Katz <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.