9.3.1 Defining Enterprise Bean security role references
Define Enterprise Bean security role references.
- Organization of this subsection
(1) Attribute files to be edited
Edit the attributes files for each type of Enterprise Bean.
-
Session Bean attribute file
-
Entity Bean attribute file
(2) Obtaining the attribute file to be edited and setting up attributes
-
Obtaining the attribute file
Execute the following command to obtain the Enterprise Bean attribute file.
- Execute form
cjgetappprop [server name] [-nameserver provider URL] -name J2EE application name -type ejb -resname EJB-JAR display name/enterprise bean display name -c enterprise bean attribute file path
- Example
cjgetappprop MyServer -name adder -type ejb -resname adder/adder_eb -c C:\home\adder_ejb.xml
-
Setting up attributes
Execute the following command to reflect the Enterprise Bean attribute file values.
- Execute form
cjsetappprop [server name] [-nameserver provider URL] -name J2EE application name -type ejb -resname EJB-JAR display name/enterprise bean display name -c enterprise bean attribute file path
- Example
cjsetappprop MyServer -name adder -type ejb -resname adder/adder_eb -c C:\home\adder_ejb.xml
(3) Attribute settings to be edited
The following table lists the Enterprise Bean security role reference (<security-role-ref>) settings.
Item |
Required |
Tag name |
---|---|---|
Description |
O |
<description> |
Security role reference name |
R |
<role-name> |
Linked security role name# |
O |
<role-link> |
#: Specify a set role name. To learn more about setting role names, see 9.2.2 Setting roles. When setting up the EJB-JAR attribute file after setting <role-link>, the <role-link> value is cleared. Define the security role reference again.
For details about property settings, see:
-
Subsection 3.4.1 Specifications of the HITACHI Session Bean Property file in the uCosminexus Application Server Application and Resource Definition Reference Guide
-
Subsection 3.5.1 Specifications of the HITACHI Entity Bean Property file in the uCosminexus Application Server Application and Resource Definition Reference Guide