Enterprise Bean References

In the Enterprise Bean References dialog, you declare the enterprise beans referenced by the application client.

  1. Click Add to enter the from your code in the Coded Name column. The name must include the package name. For example, if the JNDI lookup method refers to the enterprise bean as java:comp/env/ejb/OtherBean then enter ejb/OtherBean.
  2. Choose either or for the type of the referenced enterprise bean from the Type column.
  3. Choose either or from the Interfaces drop-down menu to specify the type of interface to be used to access the bean.
  4. Enter the bean's home interface class name in the Home Interface column.
  5. Select the matching local/remote interface from the drop-down in the Local/Remote field. If the home interface has been implemented by EJBs implementing different remote interfaces, no interface should be chosen. It is also possible to type an interface name into the Home and Local/Remote fields.
  6. A description for each referenced bean may be provided by clicking the folded paper in the rightmost column.
  7. For each enterprise bean reference in the list, the Enterprise Bean JNDI Name may be selected from the drop-down box that lists the names of all known EJBs in the JAR that satisfy the requirements in the reference. The name may also be typed in.
  8. For each enterprise bean reference in the list, the JNDI Name may be selected from the drop-down box. The JNDI Name may be typed in. A client uses the JNDI name to locate the enterprise bean's home interface. The JNDI Name field can be left blank now and filled in after you have packaged your application client.
  9. 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.


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