0 Replies Latest reply on Mar 24, 2003 1:16 PM by Rodney Kite

    getCallingPrinciple() Exception

    Rodney Kite Newbie

      What is the minimum needed to make the Principle available by calling getCallerPrincipal() in a Session Bean. I have written a custom client login module and it seems to work since I can step through it in the debugger.

      Is there some specific server side setup to make the principle available? I have looked at previous posts and have the JBoss doco but I can not determine what is the appropriate setup to make the principle available. Later I will add appropriate server side security but I want to get this working for now.

      --Thanks
      --Rodney

      public void setSessionContext(SessionContext context) throws RemoteException
      {
      sessionContext = context;
      Principal principle = sessionContext.getCallerPrincipal();
      String principleStr = principle.toString();
      }