• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

schedule task

 
lungor
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming JDK 1.3 or above, you can schedule a java.util.TimerTask from an auto-loaded initialisation servlet.
- p2
 
lungor
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I set it run at the background?
I mean I want it run when the server start.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic