struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hubert Rabago <jakartau...@yahoo.com>
Subject Re: PlugIn TimerTask
Date Mon, 23 Feb 2004 12:38:42 GMT
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 <guifrepilos@yahoo.es> wrote:
> 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 allowed to
> finish, but in fact it is ended in the middle of its
> process.
> 
> Is this a Struts effect? Can someone figure out how to
> fix this?
> 
> Thanks!
> 
> Guifre
> 

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message