An enterprise bean developer
defines all security role names used in the
enterprise bean code. Each security role name
is defined in a deployment descriptor <security-role-ref>
element, and is associated (via <role-link>)
with a security role defined elsewhere in
the descriptor.
Security roles are defined with the application
deployment descriptor element <role-name>.
For example, the following enterprise bean
deployment descriptor fragment defines a role
name root, which is a reference
(or <role-link>) to rolesuper-user.
Elsewhere in the deployment descriptor, the
security role super-user is defined
as:
....
<assembly-descriptor>
<security-role>
<description>This is the security-role
for the security role
"root" referenced in the AnEntityBean
class</description>
<role-name>super-user</role-name>
</security-role>
</assembly-descriptor>
....