uCosminexus Application Server, Security Management Guide

[Contents][Index][Back][Next]

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
(2) Obtaining the attribute file to be edited and setting up attributes
(3) Attribute settings to be edited

(1) Attribute files to be edited

Edit the attributes files for each type of Enterprise Bean.

(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>

Legend:

R: Required, O: Optional


#: 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: