Can a statless session bean acess EJBObject in ejbCreate method ? The EJB specification lists getEJBObject and getEJBLocalObject under operations allowed in ejbCreate method.
I am under the impression that EJBOjbect is created when the client invokes create method on home. For a statless session bean however, ejbCreate could be invoked much earlier for a stateless session bean unrelated to any calls from the client.
So, how can getEJBObject be a valid operation in ejbCreate for a statless session bean ?
adding in your concern, there's an evident to this case on Object Interaction Diagram in page 227 HFEjb. ejbCreate() is called at a completly different/unrelated time with client's create(). so it can be assume that there's no EJBObject.
Adrian Pang, Thanks for the link. It really helps.
But now i've got another doubt about ejbCreate/ejbRemove from stateless session bean. From HFEjb page 228, it cannot call getUserTransaction() method. But according to spec page 90 on table 3 (column BMT) it can. Which one is right?