[jboss-user] [EJB 3.0] - Re: EJB Timer still active even after the bean is undeployed
Nouredine13
do-not-reply at jboss.com
Tue Mar 10 05:37:33 EDT 2009
i have found the solution :
I killed all timers associated with the current bean, for instance :
| //to be sure that there is not previous timer still running on JBOSS
| Collection timersList = timerService.getTimers ();
| for (Object timer: timersList) {
| if (timer instanceof Timer) {
| log.debug ("Timer still running, kill it : "+timer);
| ((Timer)timer).cancel ();
| }
| }
|
thank you for your answer.
Regard's.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216480#4216480
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216480
More information about the jboss-user
mailing list