• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it possible to schedule a job inside tomcat ?

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic