PlugIn TimerTask

2004-02-23 Thread Guifre
Hello, I have implemented an automatic process in Struts/Tomcat by starting a Timer and scheduling a TimerTask in the init() method of a PlugIn class. It works pretty well, except for one thing: if I stop Tomcat while the task is running, according to the Timer specification the task should be

Re: PlugIn TimerTask

2004-02-23 Thread Hubert Rabago
How are you creating your Timer() object? If you're passing true (new Timer(true)) then the jvm will kill your timer task when then app ends. If you're just using new Timer() or passing false, well, then maybe you can ask the Tomcat list. :) --- Guifre [EMAIL PROTECTED] wrote: Hello, I

Re: PlugIn TimerTask

2004-02-23 Thread Niall Pemberton
PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 23, 2004 10:10 AM Subject: PlugIn TimerTask Hello, I have implemented an automatic process in Struts/Tomcat by starting a Timer and scheduling a TimerTask in the init() method of a PlugIn class. It works pretty well, except for one thing

Re: PlugIn TimerTask

2004-02-23 Thread Guifre
PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 23, 2004 10:10 AM Subject: PlugIn TimerTask Hello, I have implemented an automatic process in Struts/Tomcat by starting a Timer and scheduling a TimerTask in the init() method of a PlugIn class. It works pretty well, except

Re: PlugIn TimerTask

2004-02-23 Thread Guifre
I'm using just Timer() to avoid the daemon effect. As for the Tomcat list, I've considered it, but I think that having Struts at the center of the action will raise every suspicion... Guifre --- Hubert Rabago [EMAIL PROTECTED] escribió: How are you creating your Timer() object? If you're