In the EJB Refs tabbed pane, you can edit the enterprise beans referenced by your
enterprise bean.
Adding EJB References
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 menu.
Choose either
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 menu.
For each enterprise bean reference in the list, find its JNDI name in the
JNDI Name drop-down menu, 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.
Deleting EJB References
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.