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

"Ayers, Sam" <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <A66DEBDAAE3AB14D809F03EC7F6765E7066965@stamexchange1.paymentech.us>
I've been considering jcrontab for a similar application...  see the link below.

 http://jcrontab.sourceforge.net/index.shtml

This is a pure java implementation of cron.  It can be started automatically by the container (e.g. tomcat).  Scheduling is similar to the UNIX crontab.  It's a work in progress, and it may be more fully-featured than what you need (but you should take a look).

-----Original Message-----
From: Guy Katz [mailto:[email protected]]
Sent: Thursday, May 20, 2004 3:08 AM
To: [email protected]
Subject: Re: What is the best way to add a timer to a servlet?


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
  
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are proprietary and confidential information intended only for the use of the recipient(s) named above.  If you are not the intended recipient, you may not print, distribute, or copy this message or any attachments.  If you have received this communication in error, please notify the sender by return e-mail and delete this message and any attachments from your computer.
..

___________________________________________________________________________
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.