This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "IllegalStateException in the TimerService" Watch "IllegalStateException in the TimerService" New topic
Author

IllegalStateException in the TimerService

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9344
    
    2

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: 844
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- http://rkydesigns.blogspot.com
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: IllegalStateException in the TimerService
 
Similar Threads
sun solaris , copy keyboard button
getPrimaryKey on session beans
some confusions
Regarding request disptacher
HELP! Exception Processing ErrorPage