[jboss-user] [EJB/JBoss] - Get Subject in an EJB Bean

kaiyupan do-not-reply at jboss.com
Thu Feb 1 14:07:26 EST 2007

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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009625#4009625

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009625

More information about the jboss-user mailing list