Access to EJBObject in ejbCreate() of Stateless bean
Subhash Bhushan C
posted 12 years ago
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?