• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Access to EJBObject in ejbCreate() of Stateless bean

 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HF-EJB : Page No 228

The page lists some of the Bean things that a stateless bean can do, during ejbCreate() and ebjRemove() methods. "Getting a reference to your EJB Object" is one among them.

But, when the bean is created using ejbCreate(), there will be no EJBObject created. There will only be a SessionContext object and the bean itself during the ejbCreate() method, which is run independently by the container irrespective of when the client connects to the bean.

So, can the stateless bean get a reference to the EJB Object, through the session context, in the ejbCreate() method or the ejbRemove() method?
 
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
use search and u will find it!
 
Leena Diwan
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also check this out
reply
    Bookmark Topic Watch Topic
  • New Topic