Start java-Program when Tomcat starts
807607Oct 27 2006 — edited Nov 1 2006I 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.