In Page 354 of HFEJB it's shown that while in ejbActivate(), EntityContext can be used to - get a reference to EJBObject - get the primary key We know that ejbActivate() is called to get a bean out of the pool. Now my question is if the bean is in the pool, how come we can get its EJBObject and the primary key. Can anyone explain this? Thanks Suman
Suman A Sarker<br />SCJP, SCWCD, SCBCD<br /> <br />If You Can't Beat Them ... Join Them!
The EntityContext is always associated with the bean instance, so the instance can always get the PK. Note that information such as the PK, EJBObject and EJBLocalObject will change as the container assigns the instance to different EJB objects during the instance's life cycle.