• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TimerService in EJB 3

 
Fisher Daniel
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am reading EJB 3 Core Specification.
I have a question regarding stateful session bean.

In Chapter 4 section 4.4.1 and table 1 regarding Operations Allowed in the Methods of a Stateful Session Bean. In that table we see that Timer methods can be accessed inside business methods, afterBegin callback, and beforeCompletion callback.
However, in the next page, there is a statement like below

"The TimerService interface is unavailable to stateful session beans."

In my mind, Timer methods is only defined in TimerService interface. So at this point, what does "Timer methods" mean?

Regards,
Daniel
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's the javax.ejb.Timer interface, not timer methods of TimerService.
 
Senthil Kumar
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if we don't have access to Timerservice in stateful session beans , then why do we need Timer methods at all?.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic