Adding a Resource Environment Reference to a Web Application

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.

  1. In the WorkSpace Navigator of the Web Application Development perspective, select web.xml.
  2. Select the Resource tab.
  3. Expand Resource Environment References.
  4. Click Add. A new resource is added with the default name "New ResourceEnvRef x."
  5. 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.
  6. 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
  7. 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
  8. (Optional) Enter a description.
Related concepts
Configuring the web.xml File
Related tasks
Adding a Servlet to a Web Application
Adding a Filter to a Web Application
Adding a Resource Reference to a Web Application
Adding an EJB Reference to a Web Application
Adding a Context Parameter to a Web Application
Adding a Listener to a Web Application
Adding a Tag Library to a Web Application
Adding a Welcome File to a Web Application
Adding an Error Page to a Web Application
Adding MIME Mapping to a Web Application
Adding an EJB Local Reference to a Web Application
Adding an Environment Entry to a Web Application
Adding Security to a Web Application
Defining the Login Configuration of a Web Application

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.