posted 17 years ago
ejbLoad() is called by container, to inform that just bean is loaded with the DB.
ejbStore is called by container, to inform that it is going to insert record whatever in the bean to DB.
In both case above, client is alive so you can get user related informations like isCallerInRole, getCallerPrincipal etc.,
For Stateful session beans, you can get reference to both HOME and EJBOBJECT. Because, when client invokes create() in home stub, it create a EJBObject interface implemented class before calling ejbCreate(). So you can still get access to it.