• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IllegalStateException in the TimerService

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Amandeep Singh
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic