Declare Enterprise Bean References

In the Enterprise Bean References dialog box, list any enterprise beans referenced by the code of this web component. The names of the enterprise beans that you enter here must match those listed in the Entry column of the Environment dialog box.
  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. Enter the name of the enterprise bean's home interface class name in the Home column.
  5. Enter the name of the enterprise bean's remote interface class name in the Remote column.
  6. Enter a description of the enterprise bean in the Description field.
  7. For each enterprise bean reference in the list, enter its JNDI name in the JNDI Name field. A client uses the JNDI name to locate the enterprise bean's home interface. You can leave the JNDI Name field blank now and fill it in after you have packaged your enterprise bean.

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.

See Also:

Edit Enterprise Bean References


Copyright 1999, 2000 Sun Microsystems, Inc. All Rights Reserved.