• 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

Doubt about ejbCreate() for stateless session bean

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not understanding why in the ejbCreate() method of a stateless session bean, we are allowed to use the sessionContext object to get a reference to the EJBObject.

Since according to the diagrams in HFEJB on page 224-225, the flow for the creation of a stateless session bean is totally not related to client calling a method on the EJBObject. Therefore, why we can get a reference to EJBObject in ejbCreate()?

Anyone can explain so as to clear my doubt? Thank you very much.
 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you need to pass the 'this' reference to another object, you have to use the EJBObject.

[]s
Daniel
 
reply
    Bookmark Topic Watch Topic
  • New Topic