wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Stateless Session Bean/Entity Bean Creation... 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 "Stateless Session Bean/Entity Bean Creation..." Watch "Stateless Session Bean/Entity Bean Creation..." New topic
Author

Stateless Session Bean/Entity Bean Creation...

Vijay Govind
Greenhorn

Joined: Oct 18, 2006
Posts: 27
All

Good Morning. May be the below question is asked by someone, but please go through and help me to understand things correctly.

1) Per HFEFB, Creation of stateless session beans and Clients calling Create on stateless session beans are two mutually exclusive/unrelated events.(where in during the later EJBObject is created and the stub is sent to the client). Given this fact, how can a valid reference to the EJBObject be obtained as there is no client involvement during the stateless bean creation?

2) Per HFEJB, in case of an entity bean we can use an Home Business method to return a reference to the component interface/EJB Object(Pg 325). But on Page 347 it also says that you cannot get a reference to the EJBObject in the Home Business Method. I dont understand how the home business method can return a reference to the EJBObject, when it cannot get a reference to the EJB Object?

Thanks a lot.
Vijay.
"Stateful Session Bean is great....."
Vijay Govind
Greenhorn

Joined: Oct 18, 2006
Posts: 27
I am posting my questions again with a small change. Sorry me for the same.

1) Per HFEFB, Creation of stateless session beans and Clients calling Create on stateless session beans are two mutually exclusive/unrelated events.(where in during the later EJBObject is created and the stub is sent to the client). Given this fact, how can a valid reference to the EJBObject be obtained during ejbCreate() as there is no client involvement during the stateless bean creation?

2) Per HFEJB, in case of an entity bean we can use an Home Business method to return a reference to the component interface/EJB Object(Pg 325). But on Page 347 it also says that you cannot get a reference to the EJBObject in the Home Business Method. I dont understand how the home business method can return a reference to the EJBObject, when it cannot get a reference to the EJB Object?
Rajan Murugan
Ranch Hand

Joined: Jun 24, 2006
Posts: 182
Originally posted by Vijay Govind:
I am posting my questions again with a small change. Sorry me for the same.

1) Per HFEFB, Creation of stateless session beans and Clients calling Create on stateless session beans are two mutually exclusive/unrelated events.(where in during the later EJBObject is created and the stub is sent to the client). Given this fact, how can a valid reference to the EJBObject be obtained during ejbCreate() as there is no client involvement during the stateless bean creation?

2) Per HFEJB, in case of an entity bean we can use an Home Business method to return a reference to the component interface/EJB Object(Pg 325). But on Page 347 it also says that you cannot get a reference to the EJBObject in the Home Business Method. I dont understand how the home business method can return a reference to the EJBObject, when it cannot get a reference to the EJB Object?



this was discussed already in this thread EJBObject in ejbCreate().Please go thru and consider further and throw your own understanding.

you cannot return EJBOBject of the specific client from home business method
for obvious reasons.


With Regards,<br /> Rajan<br />"Java Rocks"
 
 
subject: Stateless Session Bean/Entity Bean Creation...