• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Stateless Session Bean/Entity Bean Creation...

 
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?
 
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.
 
Of course, I found a very beautiful couch. Definitely. And this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic