[jboss-cvs] JBossAS SVN: r57800 - branches/JEE5_TCK/server/src/main/org/jboss/ejb/plugins

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Oct 24 12:58:09 EDT 2006


Author: anil.saldhana at jboss.com
Date: 2006-10-24 12:58:08 -0400 (Tue, 24 Oct 2006)
New Revision: 57800

Modified:
   branches/JEE5_TCK/server/src/main/org/jboss/ejb/plugins/StatefulSessionInstanceInterceptor.java
Log:
JBAS-3781:do not push subject context if RunAsIdentity has been configured in the caller bean

Modified: branches/JEE5_TCK/server/src/main/org/jboss/ejb/plugins/StatefulSessionInstanceInterceptor.java
===================================================================
--- branches/JEE5_TCK/server/src/main/org/jboss/ejb/plugins/StatefulSessionInstanceInterceptor.java	2006-10-24 16:46:03 UTC (rev 57799)
+++ branches/JEE5_TCK/server/src/main/org/jboss/ejb/plugins/StatefulSessionInstanceInterceptor.java	2006-10-24 16:58:08 UTC (rev 57800)
@@ -225,7 +225,8 @@
          of the ejb spec requirement that runtime exceptions should invalidate
          the session.
           */
-         SecurityActions.pushSubjectContext(mi.getPrincipal(), mi.getCredential(), null);
+         if(SecurityActions.peekRunAsIdentity() == null)
+            SecurityActions.pushSubjectContext(mi.getPrincipal(), mi.getCredential(), null);
 
          lock.sync();
          try




More information about the jboss-cvs-commits mailing list