aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Is Specification not reasonable on this point? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Is Specification not reasonable on this point?" Watch "Is Specification not reasonable on this point?" New topic
Author

Is Specification not reasonable on this point?

hover cheng
Ranch Hand

Joined: Feb 11, 2003
Posts: 66
Hi, all
I could not understand one point in "7.8.2 Operations allowed in the methods of a stateless session bean class", EJB Spec 2.0. In "table 3", it illustrates that "getEJBObject" and "getEJBLocalObject" are permitted in "ejbCreate" and "ejbRemove" methods.
As we know, for stateless session bean, the ejbCreate and ejbRemove are called by the container, on the time when the bean is in pool state and is NOT associated with any EJBObject/EJBLocalObject. So, how can we get a valid EJBObject/EJBLocalObject reference in "ejbCreate" and "ejbRemove"?
Could anyone give me a comment? Thanks.


SCJP 91% SCJD 94% SCBCD 98% SCWCD1.4 86%<p>XML141 SCDWJS -- in progress<br />If you don't retreat, you are mostly among those who can surmount it.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

As we know, for stateless session bean, the ejbCreate and ejbRemove are called by the container, on the time when the bean is in pool state and is NOT associated with any EJBObject/EJBLocalObject. So, how can we get a valid EJBObject/EJBLocalObject reference in "ejbCreate" and "ejbRemove"?

Just read the OID in page 92 of the spec.


Groovy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is Specification not reasonable on this point?