Resource Environment References

The Resource Environment References page of the Edit Enterprise Bean Wizard will display as part of the wizard when the Resource Environment References option is selected on the Configuration Options page of this wizard.

Currently, the Resource Environment References are only used to refer to JMS destinations.

Resource Environment References allow the Bean Provider to refer to administered objects that are associated with resources (e.g., a Connector CCI InteractionSpec instance) by using "logical" names. These references describe the requirements that the referencing enterprise bean has for the referenced administered object.

Adding Resource Environment Destinations

To add a JMS destination declaration:

  1. Click Add to specify a JMS destination referenced by your enterprise bean.
  2. Enter the name of the JMS reference as it appears in your code. For example, if the JNDI lookup of the destination is java:comp/env/jms/stockInfoQueue, enter jms/stockInfoQueue in the Coded Name column.
  3. Choose the type of JMS destination, either Queue for javax.jms.Queue or Topic for javax.jms.Topic, from the Type column.
  4. Optionally, click the rightmost column labeled with a folded paper to provide a description for each JMS reference.
  5. For each JMS reference in the list, enter or select the JNDI name in the JNDI Name field. This is the name that you gave the destination when you created it with the Destinations dialog box of the Server Configuration screens. You may also type in a JNDI name. A client uses the JNDI name to locate the destination.

Editing a JMS Destination

To edit a JMS Destination, select the cell in the table that you want to edit and select or enter the new value.

Deleting JMS Destinations

To delete a declaration, select the row containing it and click Delete. A confirmation dialog will ask you to confirm the deletion.


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