What information do you exactly mean when you say 'security context' ?
I meant the security context specified in file "WEB-INF\jboss-web.xml".
I want to access the name of the security domain, named here "testdomain".
I don't think it is possible with the security manager mbean as it is now since the security is a setting declared at deployment.
An idear as to how you could find out could be, as the security managers are located in JNDI under java:/jaas/<security manager name> - loop the contexts looking for the active user to extract the information from there.