• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access to EJBObject in ejbCreate() of Stateless bean

 
Subhash Bhushan C
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • 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?
 
Leena Diwan
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use search and u will find it!
 
Leena Diwan
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also check this out
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic