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

2006-10-27 Thread Caldarale, Charles R
> From: Dort Wach [mailto:[EMAIL PROTECTED] > Subject: Re: RE: Howto continue TimerTask after Tomcat Server > was restarted > > I don't want to shut down TimerTask, but if someone, not me, > shut down the Tomcat server, or Tomcat server crashes, than > this someon

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
Thanks Stephan, I will try it. Maybe it will help me. I'll let know later, if it won't. Original-Nachricht Datum: Fri, 27 Oct 2006 11:47:06 +0200 Von: "Stephan Schöffel" <[EMAIL PROTECTED]> An: Tomcat Users List Betreff: Re: Howto continue TimerTa

Re: Howto continue TimerTask after Tomcat Server was restarted

2006-10-27 Thread Len Popp
You can write a ServletContextListener that is called when the app starts and stops. You specify it by a tag in web.xml. See the servlet spec for details. -- Len Popp [EMAIL PROTECTED] http://www.lmp.dyndns.org/ On 10/27/06, Dort Wach <[EMAIL PROTECTED]> wrote: Hello everybody, I have a TimerT

RE: Howto continue TimerTask after Tomcat Server was restarted

2006-10-27 Thread Caldarale, Charles R
> From: Stephan Schöffel [mailto:[EMAIL PROTECTED] > Subject: Re: Howto continue TimerTask 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 Not recommended, since the

Re: Howto continue TimerTask after Tomcat Server was restarted

2006-10-27 Thread Stephan Schöffel
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: Hello everybody, I have a TimerTask. I start it manually (on a jsp page

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