Sun GlassFish Enterprise Server 2.1 Application Deployment Guide

Subelements

The following table describes subelements for the security-role-mapping element.

Table A–105 security-role-mapping Subelements

Element 

Required 

Description 

role-name

only one 

Contains the role-name in the security-role element of the corresponding Java EE deployment descriptor file.

principal-name

one or more if no group-name, otherwise zero or more

Contains a principal (user) name in the current realm. In an enterprise bean, the principal must have the run-as role specified. 

group-name

one or more if no principal-name, otherwise zero or more

Contains a group name in the current realm.