Re: RE: Howto continue TimerTask after Tomcat Server was restarted

2006-10-27 Thread Dort Wach
> Not recommended, since there's no guarantee the init() method will only be > called once (a servlet may be instantiated multiple times). Better to use > a lifecycle listener; see section 10 of the servlet spec for details. > Also, make sure you have a reliable means of shutting down the timer

Re: Howto continue TimerTask after Tomcat Server was restarted

2006-10-27 Thread Dort Wach
sk after Tomcat Server was restarted > maybe you could put your timertask in an servlets init() method and the > put 1 in the web.xml of that servlet > which makes the the servle load on startup (who would hav guessed) and > therefore call init() > > > Dort Wach wrote: >

Howto continue TimerTask after Tomcat Server was restarted

2006-10-27 Thread Dort Wach
Hello everybody, I have a TimerTask. I start it manually (on a jsp page) and it execute a method every one hour. If someone restart Tomcat server, the TimerTask won't be executed any more. I have to start it manually again. Go to the page an click start button. Is there a possibility, to start