• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Stateless Session Bean/Entity Bean Creation...

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Trust God, but always tether your camel... to this tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic