EJB References

In the Enterprise JavaBean References property page, list any enterprise bean 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 Entries property page.

To enter a reference to an enterprise bean from the code of your web component:

  1. Click Add. The Add Enterprise Bean Reference dialog box is displayed.
  2. Enter the in the Coded Name field. For example, if the JNDI lookup method refers to the enterprise bean as java:comp/env/ejb/OtherBean then enter ejb/OtherBean.
  3. Choose either the or type for the referenced enterprise bean from the EJB Type drop-down list.
  4. Choose or (default) from the Interfaces drop-down list to specify the type of interface to be used to access the bean.
  5. Enter the name of the enterprise bean's home interface class name in the Home Interface field.
  6. The matching local/remote interface is selected from the drop-down list in the Local/Remote field. If there is more than one match, no interface should be chosen.
  7. You may click on the folded paper icon in the rightmost column to enter a description of the enterprise bean.
  8. Select the target EJB from the Target EJB drop-down list or enter the name of the Target EJB.
  9. Click OK.
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.


Legal Notices