O
Ole Laurisch
Hello everybody,
I have an application with several session (and entity) beans. Moreover
there are some helper classes, which are no EJBs, but are accessed by them.
In one of these helper classes I need to know the principal of the ejb that
is invoking the helper class. Therefore I need access to the EJBContext
object to call the getCallerPrincipal() method.
Now my question:
How do I get the EJBContext? Do I have to pass it from the EJB-method or is
there any way to get it from the helper class?
The benefit would be, that the developers of the EJBs don't have to think
about passing the EJB-Context.
Many thanks in advance,
Ole
I have an application with several session (and entity) beans. Moreover
there are some helper classes, which are no EJBs, but are accessed by them.
In one of these helper classes I need to know the principal of the ejb that
is invoking the helper class. Therefore I need access to the EJBContext
object to call the getCallerPrincipal() method.
Now my question:
How do I get the EJBContext? Do I have to pass it from the EJB-method or is
there any way to get it from the helper class?
The benefit would be, that the developers of the EJBs don't have to think
about passing the EJB-Context.
Many thanks in advance,
Ole