your method is simpler then what I figured out, certailnly:
Context securityCtx = null;
| AuthenticationManager securityMgr = null;
| InitialContext iniCtx = new InitialContext();
| securityCtx = (Context) iniCtx.lookup("java:comp/env/security");
| securityMgr = (AuthenticationManager) securityCtx.lookup("securityMgr");
| Subject subject = securityMgr.getActiveSubject();
| return subject.getPrincipals();
I'll try it, thanks
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3890190#3890190
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3890190
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user