EJB References

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:

  1. Click Add.
  2. 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.
  3. Choose either the or type for the referenced enterprise bean from the Type column.
  4. Choose or (default) 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 in the Local/Remote column, depending on the choice in the interfaces column.
  7. You can provide a description for each referenced bean by clicking on the rightmost column labelled with a folded paper.
  8. Select the name of the EJB from the pull-down menu in the Enterprise Bean Name slot of the Deployment Settings tabbed pane.
  9. 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: 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.