We are having a issue in getting the getPrincipal and getSubject from SecurityAssociation
following classes are no more available in JBOSS 7
org.jboss.security.SecurityAssociation;
org.jboss.security.SimplePrincipal;
How do we get the
SecurityAssociation.getPrincipal()
Principal principal = new SimplePrincipal(username);