EJB local-reference assembly settings

For EJB 2.0-compliant beans, the EJB local reference element declares a reference to another enterprise bean's local home interface.

 

Name

Specifies the name of an EJB reference.

This is the JNDI name that the servlet code uses to get a reference to the enterprise bean. The following example illustrates how this element is specified in the deployment descriptor:

<ejb-ref-name>ejb/Payroll</ejb-ref-name>

 

Description

Contains a description of the parent element.

This can include any information that the EJB archive-file producer wants to provide to the consumer of the EJB archive file.

 

Link

Used in the ejb-ref element to specify that an EJB reference is linked to an enterprise bean in the encompassing web-application package.

The value of the link element must be the EJB name of an enterprise bean in the same web-application package. The following example illustrates how this element is specified in the deployment descriptor:

<ejb-link>EmployeeRecord</ejb-link>

 

Local interface

Specifies the fully-qualified name of the enterprise bean's local interface.

 

Local home

Specifies the fully-qualified name of the enterprise bean's local home interface.

 

Type

Specifies the expected type of the referenced enterprise bean.


Assembling EJB modules
Developing applications that use JNDI

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.