3 Replies Latest reply on Feb 13, 2006 11:32 AM by sunfire

    What happened to javax.ejb.InvocationContext.getEJBContext()

    sunfire

      Hi there,

      in JBAS 4.0.3sp1 I was able to do something like this to get the current caller principals name from within an interceptor:

       @AroundInvoke
       public Object checkLoggedIn(InvocationContext invocation) throws Exception {
       [...]
       String login = invocation.getEJBContext().getCallerPrincipal().getName();
       [...]
      

      But in 4.0.4RC1 the getEJBContext() method is no longer available.
      Can sombody please let me know what the new prefered way to get the caller principal is?

      Thanks alot!