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 load-on-startup1/load-on-startup
in the web.xml of that servlet
Not recommended, since
You can write a ServletContextListener that is called when the app
starts and stops. You specify it by a listener 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
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 users@tomcat.apache.org
Betreff: Re: Howto continue TimerTask after
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
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 someone will start it again.
If the timer