EJB modules must define security role references for all of the
security role names that are used in the enterprise bean code or that are
defined in the deployment descriptor. You can use the EJB deployment descriptor
editor to declare the security role references.
Each security role reference that you declare in your EJB module
uses the
security-role-ref element in deployment descriptor.
If the security role is declared in the deployment descriptor, you must use
the
role-link element in the
security-role-ref element
to link the reference to the declared security role.
To define a security
role reference: