Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Developer's Guide

- Previous: resource-adapter-mid
- Next: resource-env-ref-name

## resource-env-ref

Maps the `res-ref-name` in the corresponding J2EE deployment descriptor file `resource-env-ref` entry to the absolute `jndi-name` of a resource.

### Superelements

sun-web-app (`sun-web.xml`), ejb (`sun-ejb-jar.xml`), sun-application-client (`sun-application-client.xml`)

### Subelements

The following table describes subelements for the `resource-env-ref` element.

Table A–88 `resource-env-ref` Subelements

Element | Required | Description
--- | --- | ---
resource-env-ref-name | only one | Specifies the `res-ref-name` in the corresponding J2EE deployment descriptor file `resource-env-ref` entry.
jndi-name | only one | Specifies the absolute `jndi-name` of a resource.

### Example

    <resource-env-ref>
       <resource-env-ref-name>jms/StockQueueName</resource-env-ref-name>
       <jndi-name>jms/StockQueue</jndi-name>
    </resource-env-ref>

- Previous: resource-adapter-mid
- Next: resource-env-ref-name

- © 2010, Oracle Corporation and/or its affiliates