File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes schedule task Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "schedule task" Watch "schedule task" New topic
Author

schedule task

lungor
Greenhorn

Joined: Sep 28, 2001
Posts: 4
how can I set a schedule task at the background of an tomcat server?
The task is to execute regular checking and execution on the database and email.
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Assuming JDK 1.3 or above, you can schedule a java.util.TimerTask from an auto-loaded initialisation servlet.
- p2
lungor
Greenhorn

Joined: Sep 28, 2001
Posts: 4
How can I set it run at the background?
I mean I want it run when the server start.
 
jQuery in Action, 2nd edition
 
subject: schedule task