By the time the ejbCreate() method is called, the setSessionContext() method has already been executed, and hence the session context has already been assigned to the bean and the EJBObject for this instance has been created. The container creates an instance, invokes the setSessionContext() method on it to give it a context, and then calls the ejbCreateMethod().
newInstance() --->> setSessionContext() --->> ejbCreate()
This is why we could access EJBObject in ejbCreate() of stateless session bean.
Thanks,
Mahesh
-------
SCJP 1.4, SCWCD 1.4, SCBCD 1.3, (
SCEA Part I preparing......)