In the Enterprise Bean References dialog box, list any enterprise beans
referenced by the code of your web component. The names of the enterprise
beans that you enter here must match those listed in the Entry column of
the Environment dialog box.
To enter a reference to an enterprise bean from the code of your web component,
do the following:
Click Add.
Enter the
in the Coded Name column. For example, if
the JNDI lookup method refers to the enterprise bean as
java:comp/env/ejb/OtherBean
then enter ejb/OtherBean.
Choose either the or type for the referenced enterprise bean from the Type column.
Choose
or
(default) from the Interfaces drop-down menu to specify the type of interface to
be used to access the bean.
Enter the name of the enterprise bean's home interface class name in
the Home Interface column.
The matching local/remote interface is selected from the
drop-down in the Local/Remote field. If there is more than one match,
no interface should be chosen.
You may Click on the folded paper icon in the rightmost column to enter
a description of the enterprise bean.
For each enterprise bean reference in the list, enter its JNDI name from the
JNDI Name field drop-down box, or its Enterprise Bean Name from the Enterprise
Bean Name drop-down box. If the Local option is selected in the Interfaces field,
the JNDI Name Field will be disabled. If the Remote option has been selected,
the Enterprise Bean Name field will be disabled. A client uses the JNDI name to locate the enterprise
bean's home interface. You can leave the JNDI Name field blank now and fill it
in after you have packaged your web component.
To delete a reference, select the row containing
the reference and click Delete. A confirmation dialog will ask
you if you really want to delete the reference.