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#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...