aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 9243
    
    1

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, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IllegalStateException in the TimerService
 
Similar Threads
getPrimaryKey on session beans
some confusions
HELP! Exception Processing ErrorPage
sun solaris , copy keyboard button
Regarding request disptacher