Hi! In HFEJB page 94, it says that the bean is created BEFORE the EJB Object is created, whereas in page 100, it says the bean is created AFTER the EJB Object is created, so which one is correct? Why is the inconsistency here? Thanks.
The container has to first create the EJBObject and SessionContext. Once the stateful session bean has been created, it can then be linked to the SessionContext and EJBObject by invoking setSessionContext() and ejbCreate() on the instance. The container can now return a stub, ie a reference to the EJBObject, to the client.