[jboss-user] [EJB 3.0] - Re: How to get a reference to Subject
gmuzzillo
do-not-reply at jboss.com
Wed Jul 4 16:06:03 EDT 2007
Hi berrysx:
you can use the following to retrieve the subject on ejb3.
Subject subject = (Subject) ic.lookup("java:jaas/<your protection domain>/subject");
where <your protection domain> stands for the protection domain name you've declared login-config.xml
Best regards.
Gustavo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060569#4060569
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060569
More information about the jboss-user
mailing list