If you are using java.util.Timer, see the constructor that takes a boolean 
parameter. Setting the Timer as a daemon means it won't keep the JVM running.

Erik


-----Original Message-----
From: sudip shrestha <[EMAIL PROTECTED]>
Sent: Oct 17, 2005 4:40 PM
To: Struts Users Mailing List <user@struts.apache.org>
Subject: struts plugin and destroy()

I have a struts plugin that works well....but I realized that it was not
executing the destroy() method when the tomcat-server was shutdown. I have a
timer that needs to run timertask at a certain interval and have implemented
timer.cancel() method inside the destroy() method....But there seems no sign
of this method being executed and the timertask keeps continuing even after
the tomcat was shutdown...Any suggestions?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to