jQuery in Action, 3rd edition
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes TimerService in EJB 3 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 "TimerService in EJB 3" Watch "TimerService in EJB 3" New topic

TimerService in EJB 3

Fisher Daniel
Ranch Hand

Joined: Sep 14, 2001
Posts: 582
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?

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

It's the javax.ejb.Timer interface, not timer methods of TimerService.

[My Blog]
All roads lead to JavaRanch
Senthil Kumar
Ranch Hand

Joined: Mar 13, 2006
Posts: 264
if we don't have access to Timerservice in stateful session beans , then why do we need Timer methods at all?.

when you really want something, all the universe always conspires in your favour.<br /> <br />SCJP1.5-77%<br />SCWCD-89%
I agree. Here's the link: http://aspose.com/file-tools
subject: TimerService in EJB 3
It's not a secret anymore!