Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stateless Session Bean/Entity Bean Creation...

 
Vijay Govind
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic