Set the security role of the bean

Set the security role for the methods in the bean.

Prerequisite You have set the security identity of the bean.

  1. In the Deployment Descriptor editor, select the Assembly Descriptor tab.

  2. In the Method permissions section, click Add.

  3. Select WCSecurityRole as the security role and click Next.

  4. From the list of beans found, select yourNewBean and click Next.

  5. In the Method elements page, click Apply to All, then click Finish.

  6. Save your work and then close the Deployment Descriptor editor.

  7. Proceed to setting the optimistic locking option of the bean.


Previous topic:

Set the security identity of the bean
Next topic:

Set the optimistic locking option of the bean

Related tasks

Create new entity beans