In the EJB Refs tabbed pane, you can edit the list all of the enterprise beans that are referenced
by the web component that you are editing.
To add an enterprise bean reference:
Click Add. The Add Enterprise Bean Reference dialog box is displayed.
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 list to specify the type of interface to be used to access the bean.
Enter the bean's home interface class name in the Home Interface field.
Enter the bean's local or remote interface in the Local/Remote
column, depending on the choice in the
interfaces field.
You can provide a description for each referenced bean by clicking on the rightmost column labeled
with a folded paper.
Select the name of the EJB from the drop-down list in the Target EJB pane.
For each enterprise bean reference in the list, select its JNDI name (if any) from the JNDI Name menu.
A client uses the JNDI name to locate the enterprise bean's home interface.
To edit the:
Reference name - Select the name in the Coded Name column and enter the name of the
enterprise bean reference, prepended with ejb/.
Home interface - Select the name in the Home column and enter the referenced enterprise
bean's home interface class name.
Local/Remote interface - Select the name in the Local/Remote column and enter the
referenced enterprise bean's interface class name.
Description - Enter a description for each referenced bean by clicking on the rightmost
column labeled with a folded paper.
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.
To define the Sun-specific deployment settings:
The EJB resource reference declared in the Web application uses a JNDI name or
an Enterprise Ban name to refer to the data source. Connect the name to
a data source defined by the J2EE application server.
Select the name of the data source that you create in the application server,
from the JNDI Name or the Enterprise Bean Name field.