Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Start java-Program when Tomcat starts

807607Oct 27 2006 — edited Nov 1 2006
I have a TimerTask, that should be executed every hour (war in webapp of Tomcat). If Apache Tomcat will be shut down and started again, Task won't be executed.

Can I define somewhere, that some class should be executed when Tomcat server starts and after restart the tasks will be countinued.

Can I, for example define it some where in web.xml or somewhere else?

I can't controll when tomcat was turned off and started again.

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 29 2006
Added on Oct 27 2006
19 comments
356 views