0 Replies Latest reply on Aug 15, 2013 8:43 AM by javacoryd

    JBoss 7.1.1 Final / Run As with EJB 2

    javacoryd

      We are porting a bunch of applications from JBoss 4.2.3 to JBoss 7.1.1 Final.  Most all is complete but I have run into an issue with some of our EJB 2 "run as" identities.

       

      I have entries in the "jboss-ejb3.xml" file that look similar to this for both EJB 2 Stateless Session Beans and MDBs:

       

      <s:security>

           <ejb-name>MyMessageBean</ejb-name>

           <s:run-as-principal>My User</s:run-as-principal>

      </s:security>

       

      Also have in the "ejb-jar.xml" file for the bean declaration I have:

       

      <security-identity>

           <run-as>

                <role-name>My User</role-name>

           </run-as>

      </security-identity>

       

      The end result is that when these beans are invoked, the "run as" user is defined as "anonymous" and not the id they used to run in under JBoss 4.2.3.

       

      Is there a solution to this?

       

      Thanks,

       

      Cory.