> 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
> 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
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
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
> 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
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