I have an application which creates theads within EJBs. Now from the thread when i call a PrivilegedAction using the Subject.doAs then the subject is not getting propogated. Does jboss provide any method to propagate the subject instead of Subject.doAs ( something like Security.runAs in weblogic maybe ?) . If not can u please suggest any other way. Thanks in advance.