# web.xml Visual Editor: Resource Environment References

Use the Resource Environment References section to add, remove, and view the web application's resource environment references. Resource environment references contain a declaration of a web application's reference to an administered object associated with a resource in the web application's environment. It consists of an optional description, the resource environment reference name, and an indication of the resource environment reference type expected by the web application code.

To declare an resource environment reference, you must register it in the `web.xml` file. When you do this, you provide information needed by the server to use the reference.

In the Visual Editor, click References at the top of the editor to open the References section, then click the Resource Environment References header to open the Resource Environment References section.

Click Add to define a resource environment reference with the following properties:

Element | Description
--- | ---
Resource Name | Specifies the name of a resource environment reference, such as `jms/SharePriceQueue`. The specified value is the environment entry name used in the web application code. The name is a JNDI name relative to the `java:comp/env` context and must be unique within a web application.
Resource Type | Specifies the type of a resource environment reference, either `javax.jms.Queue` or `javax.jms.Topic`. It is the fully qualified name of a Java language class or interface.
Description | Specifies a description, such as `Queue for My Share Prices`.

Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Copyright © 2016, Oracle and/or its affiliates. All rights reserved.