You will see the Enterprise Bean References page of Edit Enterprise Bean Wizard if you selected Enterprise Bean References on the Configuration Options page of this wizard. Use this page to list any enterprise beans that are referenced in the code of this bean.
Adding EJB References
To add an EJB reference:
Click Add in the EJB's Referenced in Code section to add a referenced enterprise bean. The Add Enterprise Bean Reference dialog displays. Refer to its Help screen for more information.
In the Add Enterprise Bean Reference dialog, enter the
in the Coded Name field. 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, enter ejb/OtherBean.
Choose either or type for the referenced enterprise bean from the EJB Type drop-down list.
Choose either or from the Interfaces drop-down list to specify the type of interface to be used to access the bean.
Select the bean's Home Interface class from its drop-down list.
Select the bean's local or remote interface class name from the Local/Remote Interface drop-down list.
Optionally, provide a description for each referenced bean by clicking the Description button and entering the description in the text box.
For each enterprise bean reference in the list, enter the Enterprise Bean Name by choosing it from the drop-down list.
Set the Deployment Settings for each enterprise bean reference in the list. To do this:
Select the radio button beside either Enterprise Bean Name or JNDI Name.
If you selected JNDI Name, select its JNDI name from the JNDI Name drop- down list. 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.
If you selected Enterprise Bean Name, select it from the Enterprise Bean Name drop-down list.
Editing EJB References
To edit an existing EJB Reference,
Select the EJB Reference in the table.
Select the Edit button in the EJB's Referenced in Code section.
Make changes in the Edit Enterprise Bean Reference dialog.
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.