9.13.2 Referencing and changing the Enterprise Bean name
You reference and change the Enterprise Bean name of the following Enterprise Beans:
-
Session Bean
-
Entity Bean
- Organization of this subsection
(1) Attribute files to be edited
-
Session Bean attribute file
-
Entity Bean attribute file
(2) Acquiring the attribute files to be edited and setting the attributes
-
Acquiring the attribute files
Execute the following command to acquire an Enterprise Bean attribute file (Session Bean attribute file or Entity Bean attribute file):
- Execution format
cjgetappprop [server-name] [-nameserver provider-URL] -name J2EE application-name -type ejb -resname EJB-JAR-display-name/Enterprise-Bean-display-name -c path-of-the-Enterprise-Bean-attribute-file#
- #
-
Specify the file path of the Session Bean attribute file or the Entity Bean attribute file in the path of the Enterprise Bean attribute file.
- Example of execution
cjgetappprop MyServer -name account -type ejb -resname account/MyAccount -c C:\home\MyAccount.xml
-
Setting the attribute files
Execute the following command to apply the values of the Enterprise Bean attribute file (Session Bean attribute file or Entity Bean attribute file):
- Execution format
cjsetappprop [server-name] [-nameserver provider-URL] -name J2EE application-name -type ejb -resname EJB-JAR-display-name/Enterprise-Bean-display-name -c path-of-the-Enterprise-Bean-attribute-file#
- #
-
Specify the path of the Session Bean attribute file or the Entity Bean attribute file in the path of the Enterprise Bean attribute file.
- Example of execution
cjsetappprop MyServer -name account -type ejb -resname account/MyAccount -c C:\home\MyAccount.xml
(3) Attribute settings to be edited
Reference and change the Enterprise Bean name of the Enterprise Bean attribute file (Session Bean attribute file or Entity Bean attribute file) with the runtime attributes (<runtime>).
Items |
Mandatory |
Corresponding tags |
---|---|---|
Lookup name of the Enterprise Bean |
Y |
<lookup-name> |
Optional name of the Enterprise Bean name having a remote interface |
O |
<optional-name> |
Optional name of the Enterprise Bean name having a local interface |
O |
<local-optional-name> |
For property settings, reference the following subsections:
-
3.4.1 Specifications of the HITACHI Session Bean Property file in the uCosminexus Application Server Application and Resource Definition Reference Guide
-
3.5.1 Specifications of the HITACHI Entity Bean Property file in the uCosminexus Application Server Application and Resource Definition Reference Guide
(4) Notes
-
You can specify the value only when true is set in the ejbserver.cui.optionalname.enabled key of usrconf.properties file and EJB implements a remote interface.
-
The initial value of the Enterprise Bean name registered in the JNDI namespace uses the ejb-name of an Enterprise Bean.
-
The Enterprise Bean name registered in the JNDI namespace does not exist in the Message-driven Bean.