Add/Edit Enterprise Bean References

EJB Refs tabbed pane -> Add button

The Enterprise Bean References dialog box enables you to add or edit references to EJBs. To add an EJB reference, do the following:

  1. Click Add to declare a referenced enterprise bean.
  2. 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.
  3. Choose either or type for the referenced enterprise bean from the Type drop-down list.
  4. Choose either or from the Interfaces drop-down list to specify the type of interface to be used to access the bean.
  5. Enter the bean's home interface class name in the Home Interface column.
  6. Enter the bean's local or remote interface class name in the Local/Remote Interface column.
  7. You can provide a description for each referenced bean by clicking the folded paper icon from the rightmost column.
  8. For each enterprise bean reference in the list, you can enter the Enterprise Bean Name by choosing it from the drop-down list.
  9. For each enterprise bean reference in the list, find its JNDI name in the JNDI Name drop-down list, 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.

  10. Legal Notices