uCosminexus Application Server, Application Setup Guide
If the Enterprise Beans that form a J2EE application invoke other Enterprise Beans, set the properties for resolving the references.
Edit the attribute file that maps to the types of Enterprise Beans forming the J2EE application.
Execute the following command to acquire an Enterprise Bean attribute file:
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 |
cjgetappprop MyServer -name adder -type ejb -resname adder/adder_eb -c C:\home\adder_ejb.xml
Execute the following command to apply the values of the Enterprise Bean attribute file:
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 |
cjsetappprop MyServer -name adder -type ejb -resname adder/adder_eb -c C:\home\adder_ejb.xml
The access types of Enterprise Beans to be referenced are as follows:
| Access types of Enterprise Beans to be referenced | Corresponding tags |
|---|---|
| Remote interface | <ejb-ref> |
| Local interface | <ejb-local-ref> |
The individual settings are explained below:
The following table describes the reference settings (<ejb-ref>) for the remote Enterprise Beans:
| Items | Mandatory | Corresponding tags |
|---|---|---|
| Description | O | <description> |
| Enterprise Bean reference name | Y | <ejb-ref-name> |
| Type of Enterprise Bean to be referenced | Y | <ejb-ref-type> |
| Remote home interface | Y | <home> |
| Remote interface | Y | <remote> |
| <ejb-name> to be linked | O | <ejb-link> |
The following table describes the reference settings (<ejb-local-ref >) for the local Enterprise Beans:
| Items | Mandatory | Corresponding tags |
|---|---|---|
| Description | O | <description> |
| Enterprise Bean reference name | Y | <ejb-ref-name> |
| Type of Enterprise Bean to be referenced | Y | <ejb-ref-type> |
| Local home interface | Y | <local-home> |
| Local interface | Y | <local> |
| <ejb-name> to be linked | O | <ejb-link> |
corbaname::name-space-host-name:name-space-port-number#JNDI-name-of-the-EJBHome-object-reference |
HITACHI_EJB/SERVERS/server-name/EJB/J2EE-APP-name/Enterprise-Bean-name |
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.