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 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 my TimerTask automatically, when the Tomcat 
server was restarted.

Maybe there is some configuration in web.xml or something like that?

Like in Windows XP, if I copy some script in startup...

Thanks in advance.
--
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to