In the Enterprise Bean References dialog, you declare the enterprise
beans referenced by the application client.
Click Add to enter the
from your code in the Coded Name column. The name must
include the package name. 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
for the type of the referenced enterprise bean from the
Type column.
Choose either
Enter the bean's home interface class name in the Home Interface column.
Select the matching local/remote interface from the drop-down in the
Local/Remote field. If the home interface has been implemented by
EJBs implementing different remote interfaces, no interface should be
chosen. It is also possible to type an interface name into the Home
and Local/Remote fields.
A description for each referenced bean may be provided by clicking
the folded paper in the rightmost column.
For each enterprise bean reference in the list, the Enterprise Bean
JNDI Name may be selected from the drop-down box that lists the names of
all known EJBs in the JAR that satisfy the requirements in the
reference. The name may also be typed in.
For each enterprise bean reference in the list, the JNDI Name may be selected from
the drop-down box. The JNDI Name may be typed in. A client uses the JNDI name to
locate the enterprise bean's home interface. The JNDI Name field can be left
blank now and filled in after you have packaged your application client.
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.