[jboss-user] [EJB 3.0] - Re: EJB Timer still active even after the bean is undeployed
ragnor
do-not-reply at jboss.com
Tue Mar 10 04:39:11 EDT 2009
Hi!
According to ejb-3.0 spec (page 88) in @PreDestroy method in stateless bean only following method are allowed:
- SessionContext methods: getBusinessObject, getEJBHome, getEJBLocalHome, getEJBObject, getEJBLocalObject,getTimerService, lookup
- JNDI access to java:comp/env
- EntityManagerFactory access
as you see 'TimerService and Timer methods' are not mentioned here, so you cannot cancel timer in PreDestroy method.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216466#4216466
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216466
More information about the jboss-user
mailing list