You can use the application
deployment descriptor editor to define security roles for your enterprise
applications.
About this task
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.
Procedure
- In the Enterprise Explorer view of the Java™ EE perspective, right-click the deployment
descriptor for your enterprise application project and select to open the application deployment descriptor editor.
- On the Security page of the editor, click Add.
- Type a name and description for the new role and click Finish.
What to do next
To remove a security role, select
the role and click
Remove.