The Enterprise Bean References dialog box enables you to add or edit references to
EJBs.
To add an EJB reference, do the following:
Click Add to declare a referenced enterprise bean.
Enter the
in the Coded Name column. The reference name is relative to the java:comp/env/
domain.
For example, if the JNDI lookup method refers to the enterprise bean as
java:comp/env/ejb/OtherBean
then enter ejb/OtherBean.
Choose either
or
type for the referenced enterprise bean from the Type drop-down list.
Choose either
or
Enter the bean's home interface class name in the Home Interface column.
Enter the bean's local or remote interface class name in the Local/Remote Interface
column.
You can provide a description for each referenced bean by clicking the folded paper
icon from the rightmost column.
For each enterprise bean reference in the list, you can enter the Enterprise Bean
Name by choosing it from the
drop-down list.
For each enterprise bean reference in the list, find its JNDI name in the
JNDI Name drop-down list, or type it in.
The JNDI name is used to locate the enterprise bean's home interface. Selection of a
local option in the
Local/Remote Interface box will disable the JNDI Name box.