Editing module-wide nodes Once you ve completed defining the first relationship role for the relationship, double- click the second relationship role node and fill in the second Relationship Role page to complete the second half of the relationship. Adding security roles and method permissions The EJB Module DD editor enables you to create or edit security roles in the deployment descriptor. After you create security roles, you can then associate methods in an enterprise bean s home, remote, local, and local home interfaces with these roles, thereby defining the security view of the application. This section describes how to use the EJB Module DD editor to create the security roles and assign enterprise bean methods to the roles. The section Security Role Reference page on page 128 describes how to use the Roles page to assign user groups and/or user accounts to the roles. Defining security roles in the deployment descriptor is optional. Creating a security role To create a security role in the deployment descriptor, 1 Right-click the Security Roles node in the project pane and choose Add: 2 In the Name field, give the security role a name that identifies the role. For example, you might have a role name such as manager. 3 In the Description field, describe the new role. Filling this field in is optional. 4 If there is a tab with the name of your selected server in the content pane, click it to display a server-specific page. Fill in the fields with information required by your server. Assigning method permissions Once you ve defined one or more security roles, you can specify which methods in the interfaces of an enterprise bean the security role is allowed to invoke. You aren t required to associate a security role with methods in a bean s interfaces. In these cases, none of the security roles defined in the deployment descriptor are allowed to invoke these methods. Chapter 13: Editing EJB deployment descriptors 135
Are you a Mac user in a search of Mac web hosting provider? We are. once upon a time, we were just like you, trying to find somebody who knows. Unfortunately, we had no luck, so we decided to help many others like you, and us. our team developed Mac friendly web hosting plans, feature packed, constantly monitored, and more than affordable. With us, you are home. Sign up.