This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Is it possible to schedule a job inside tomcat ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Is it possible to schedule a job inside tomcat ?" Watch "Is it possible to schedule a job inside tomcat ?" New topic
Author

Is it possible to schedule a job inside tomcat ?

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 550
Hi
Thank you for reading my post.
is it possible to schedular a job inside a web application ?
In my case i need to schedule hit/view log processing
and run it every 2 Hours?
is it a good design to do a batch job from within web application ?

can i do such thing in Tomcat by using OSS solutions , or Timer and job schedualing is just for j2ee application servers?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
The java.util.Timer and TimerTask classes should be able to do this. If you need to get much fancier, there's the Quartz open-source package, but judging from your description that would be overkill.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it possible to schedule a job inside tomcat ?
 
Similar Threads
web-app outside WEB-INF in Tomcat
batch job processing in WSAD.
Doubt in Quartz job scheduling ?
How to schedule a recurring job in Websphere?
tomcat 5 and scheduler