Hitachi

uCosminexus Application Server Application Setup Guide


9.3.1 Defining other Enterprise Bean references

If the Enterprise Beans that form a J2EE application invoke other Enterprise Beans, set the properties for resolving the references.

Organization of this subsection

(1) Attribute file to be edited

Edit the attribute file that maps to the types of Enterprise Beans forming the J2EE application.

(2) Acquiring the attribute file to be edited and setting the attributes

(3) Attribute settings to be edited

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>

Note:

The business interface (business-local and business-remote) cannot be changed as it is set in annotation.

The individual settings are explained below:

(a) Defining Enterprise Bean references for a remote interface

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>

Legend:

Y: Mandatory

O: Optional

(b) Defining the Enterprise Bean references for a local interface

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>

Legend:

Y: Mandatory

O: Optional

(4) Notes