Thursday, November 12, 2009

Using run-as-principal in MDB deployment descriptor

ejb-jar.xml
            <security-identity>
<run-as>
<role-name>Admin</role-name>
</run-as>
</security-identity>
</message-driven>


...
<assembly-descriptor>
<security-role>
<role-name>Admin</role-name>
</security-role>
<container-transaction>


weblogic-ejb-jar.xml
<security-role-assignment>
<role-name>
Admin
</role-name>
<principal-name>
weblogic
</principal-name>
</security-role-assignment>
<run-as-role-assignment>
<role-name>
Admin
</role-name>
<run-as-principal-name>
weblogic
</run-as-principal-name>
</run-as-role-assignment>

No comments:

Post a Comment