JMS References
The Resource Evnironment References dialog is currently used only to enter
JMS destinations. In the JMS References dialog box, declare all of the JMS destinations
referenced by your enterprise bean.
Adding JMS Destinations
To add a JMS destination declaration do the following:
- Click Add to declare a JMS destination referenced by your enterprise bean.
-
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.
-
Choose the type of JMS destination, either Queue for javax.jms.Queue or
Topic for javax.jms.Topic, from the Type column.
-
Click the rightmost column labeled with a folded paper to provide a
description for each JMS reference.
-
For each JMS reference in the list, enter the JNDI name in the
JNDI Name field. This is the name that you gave the destination when
you created it with the j2eeadmin -addJmsDestination command
or 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.
-
If you are adding a resource that requires a user name and password, enter them
in the User Name and Password fields. JMS connection factories require a user
name and password. The Cloudscape DBMS included with the J2EE SDK does not
require a user name and password.
Deleting JMS Destinations
To delete a declaration, select the row containing
it 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.