Two Laptop Bag*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 551
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: 41092
    
  44
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 - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it possible to schedule a job inside tomcat ?
 
Similar Threads
batch job processing in WSAD.
web-app outside WEB-INF in Tomcat
Doubt in Quartz job scheduling ?
tomcat 5 and scheduler
How to schedule a recurring job in Websphere?