Resource environment references are logical names applied to objects that EAServer administers, and are accessed by Web applications, application clients, and
Enterprise JavaBean
(EJB) components.
-
In the
WorkSpace Navigator of the
Web Application Development perspective,
select
web.xml.
-
Select the
Resource tab.
-
Expand
Resource Environment References.
-
Click
Add.
A new resource is added with the default name "New ResourceEnvRef
x."
-
Change the default resource environment name in the
Name field of the
General Information section.
This the partial JNDI name used in servlet and JSP code. Use the prefix
jms/ for JMS references. For example, if your code refers to
java:comp/env/jms/MyQueue
, type
jms/MyQueue in the Name field.
-
Click the arrow in the
Type field to select a resource type.
Table 1. Resource types
Type |
Used for |
javax.jms.Queue |
JMS message queues |
java.jms.Topic |
JMS message topics |
-
To specify the link value:
Option |
Description |
If the resource type is
javax.jms.queue
|
Type the name of a configured queue connection factory
|
If the resource type is
javax.jms
|
Type the name of a configured topic connection factory
|
-
(Optional) Enter a description.
Send your feedback on this help topic to Sybase Technical Publications:
pubs@sybase.com
Your comments will be sent to the technical publications staff at Sybase, Inc.
For product-related issues or technical support, contact Sybase Technical Support
at 1-800-8SYBASE.