aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Doubt about timer method and methods allowed in a SFSB 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 "Doubt about timer method and methods allowed in a SFSB" Watch "Doubt about timer method and methods allowed in a SFSB" New topic
Author

Doubt about timer method and methods allowed in a SFSB

Nicolas Stern
Ranch Hand

Joined: Apr 26, 2002
Posts: 57
Hi everybody,

...perhaps my thinking's getting fuzzy...thanks for helping me putting the pieces of the puzzle together.

According to the core specs. par. 4.4.1 "Operations Allowed in the Methods of a Stateful Session Bean Class", a business method of a SFSB can have access to timer methods.

According par. 18.2, only SLSB and MDB and 2.1 Entity beans can be registered to the timer service. Timers cannot be created for SFSB or entities.

What am I missing ? Why should a SFSB access timer methods for ?

Thanks in advance - Cheers - Nicolas
Mirko Bonasorte
Ranch Hand

Joined: May 14, 2007
Posts: 244
I suppose the timer methods are related to javax.ejb.TimerService and NOT to the fact that the ejb can be a TimedObject or not: so you can schedule a timer but you can't BE a timer.


SCJP<br />SCWCD 1.4 Upgrade (Remember: me stupid)<br />SCWCD 1.4<br /><a href="http://jcp.org/aboutJava/communityprocess/final/jsr220/index.html" target="_blank" rel="nofollow">SCBCD 5.0</a><br /><a href="http://www.enthuware.com" target="_blank" rel="nofollow">SCBCD 5.0 mock exam</a> <br /> <br />SCEA 5 Part1: Preparing...
 
Consider Paul's rocket mass heater.
 
subject: Doubt about timer method and methods allowed in a SFSB