This content has been marked as final.
Show 3 replies
-
1. Re: What happened to javax.ejb.InvocationContext.getEJBConte
cspada Feb 13, 2006 8:28 AM (in response to sunfire)I didn't find it anymore too.
But i still can obtain a reference to the Session context with :
public class MyInterceptor {
@Resource
protected SessionContext sessionCtx;
.....
@AroundInvoke
public Object aroundInvoke(InvocationContext invCtx) throws Exception {
....
....
Principal principal = sessionCtx.getCallerPrincipal();
....
....
}
Hope it will be useful to you.
Christophe. -
2. Re: What happened to javax.ejb.InvocationContext.getEJBConte
bill.burke Feb 13, 2006 8:29 AM (in response to sunfire)it was removed from the spec to make interceptors less EJB specific. There's talk that EJB interceptors might be usable in other JSRs.
-
3. Re: What happened to javax.ejb.InvocationContext.getEJBConte
sunfire Feb 13, 2006 11:32 AM (in response to sunfire)Thanks Christophe, your post was the solution. :)