Setting the security role of the bean

Set the security role for the methods in the bean.

Before you begin

You have set the security identity of the bean.

Procedure

  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.