This content has been marked as final.
Show 2 replies
-
1. Re: How to get a reference to Subject
gmuzzillo Jul 4, 2007 4:06 PM (in response to berrysx)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 -
2. Re: How to get a reference to Subject
berrysx Jul 5, 2007 4:36 AM (in response to berrysx)Thanks Gustavo