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.