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

    JBoss 7.1.1 Final / Run As with EJB 2

    Cory Dahlstrom Novice

      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:run-as-principal>My User</s:run-as-principal>



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




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




      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?