This content has been marked as final.
Show 1 reply
-
1. Re: When does EJBContext callerPrincipal get set and cleared
starksm64 Feb 11, 2004 11:10 AM (in response to damo9f)It gets set when the invocation comes in and its cleared when the ctx is return to the pool. Why can't you obtain the ejb context from the invocation?
public Object invoke(final Invocation mi) throws Exception { EnterpriseContext ctx = (EnterpriseContext) mi.getEnterpriseContext(); Principal p = ctx.getEJBContext().getCallerPrincipal(); ... }