0 Replies Latest reply on Feb 1, 2007 2:07 PM by Kaiyu Pan

    Get Subject in an EJB Bean

    Kaiyu Pan Newbie

      I am trying to get the Subject the my EJB implementation. My client connects through RMI. From reading the documentation, I tried the following code:

      Subject sub = (Subject) PolicyContext.getContext("javax.security.auth.Subject.container");

      However, the subject returned is null. Thanks for the help.