Defining the roles

image with no caption

The <security-role> element

Create the security roles in the <assembly-descriptor> part of the deployment descriptor. Remember, the deployment descriptor has two parts:

1. The <enterprise-beans> section that’s created by the Bean Provider, and describes each bean in the application.

2. The <assembly-descriptor> part that’s created by the App Assembler, and describes characteristics of the application as a whole, including the ways in which beans refer to one another, most security information, and transaction attributes.

image with no caption

Get Head First EJB now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.