Defining security roles for enterprise applications

You can use the Application Deployment Descriptor editor to define security roles for your enterprise applications.

A security role is a logical grouping of principals. Access to operations (such as EJB methods) is controlled by granting access to a role. You can grant access to users individually or in groups.

For each security role that you define in the deployment descriptor editor, a <security-role> element is added to the application.xml file.

To add security roles using the Application Deployment Descriptor editor:

  1. In the Project Explorer view of the J2EE perspective, right-click the Deployment Descriptor for your enterprise application project and select Open With > Deployment Descriptor Editor to open the Application Deployment Descriptor editor.
  2. On the Security page of the editor, click Add. The Add Security Role wizard appears.
  3. Type a name and description for the new role.
  4. Click Finish.
To remove a security role, select the role and click Remove.
Related concepts
Application Deployment Descriptor editor
Related tasks
Gathering security roles
Replacing security roles
Terms of use | Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.