1 Reply Latest reply on May 16, 2006 5:43 PM by anil.saldhana

    EntityContext.getCallerPrincipal() returns wrong principal i

    garek

      I have some code that is basically the following:

      public Integer ejbHomeGetId() throws FinderException {
       return ejbSelectIdByLoginName(ctxt.getCallerPrincipal().getName());
      }
      


      However, in 4.0.4.GA, EntityContext.getCallerPrincipal().getName() returns "anonymous," and not the authenticated principal's name.

      I'm not sure if this is the right place to report this, but I couldn't find a bug reporting page anywhere.

      Thanks,
      Brian