
Use this procedure to specify whether the caller identity will be used when invoking the bean's methods, or whether the caller will use a specific run-as identity.
The following shows a sample result source code:
<security-identity> <description>The caller's identity will be used when accessing the bean's methods.</description> <use-caller-identity/> </security-identity>
You cannot specify the Use caller identity option for message-driven beans. You must specify the run-as identity instead.
To change an already assigned security role, choose Remove and then choose Add to assign another security role.
The following shows a sample result source code:
<security-identity> <description>The bean will use run-as identity to make calls.</description> <run-as> <role-name>carCustomer</role-name> </run-as> </security-identity>