hI all
I came across a thread sometme back on how to stop a timer properly... but I am still alittle muddled
My Timer is started thru a servlet context listener
public void contextInitialized(ServletContextEvent servletcontextevent) {
timer.triggerTimerServices();
}
now I want to cancel the old running timers once I undeploy
so in my contextDestroyed()
I have timer.cancelAllTimers()
Is there any other way of doing this?>
Cheers
Priya
[Message sent by forum member 'priyasubu' (priyasubu)]
http://forums.java.net/jive/thread.jspa?messageID=243957