You can use
Subject subject = SecurityAssociation.getSubject() ;
method which returns current active Subject.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064554#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...