File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes IllegalStateException in the TimerService Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "IllegalStateException in the TimerService" Watch "IllegalStateException in the TimerService" New topic

IllegalStateException in the TimerService

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10031

When and in which scenario does this exception gets thrown in a TimerService? I can see that the interface's mathod all throws an EJBException or IllegalStateException, but when does this IllegalStateException gets thrown?

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 850
If a session bean instance attempts to invoke a method of the Timer interface in dependency injection
methods (e.g., setSessionContext) or PostConstruct, Pre-
Destroy, PrePassivate,
PostActivate lifecycle
callback interceptor
methods in BMT or CMT, the IllegalStateException is thrown.

SCJP 1.4, SCWCD 5, SCBCD 5, OCPJWSD 5,SCEA-1, Started Assignment Part 2
My blog-
I agree. Here's the link:
subject: IllegalStateException in the TimerService
It's not a secret anymore!