The only way to retrieve the EJBContext in EJB 2.1 is to implement the appropriate setXXXContext
method in the beanClass : setSessionContext, setMessageDrivenContext, or setEntityContext.
Each of these is called by the container during the instance initialization lifecycle.
--ken