3 Replies Latest reply on Aug 25, 2006 1:51 PM by Leonardo Gomes

    run-as-principal TAG

    Rogerio Augusto Rondini Newbie

      Hi,

      I would like to know if run-as-principal tag in jboss.xml work in Jboss 3.2.7.

      I'am try to use configuration below in JBoss 3.2.7 but it doesn't work. The method ctx.getCallerPrincipal() return "nobody".

      In jboss.xml

       <session>
       ...
       <security-identity>
       <run-as-principal>master</run-as-principal>
       </security-identity>
       ...
       </session>
      


      In ejb-jar.xml
       <session>
       ...
       <security-identity>
       <run-as>
       <role-name>master</role-name>
       </run-as>
       </security-identity>
       ...
       </session>
      


      The Session Bean is called by an Message Driven Bean.