Enterprise Bean References

In the EJB Refs tabbed pane, you can edit the enterprise beans referenced by your enterprise bean.

Adding EJB References

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 menu.
  4. Choose either or from the Interfaces drop-down menu 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 menu.
  9. For each enterprise bean reference in the list, find its JNDI name in the JNDI Name drop-down menu, 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. 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.


    Copyright 1999-2001 Sun Microsystems, Inc. All Rights Reserved.