Sun GlassFish Enterprise Server v3 Application Deployment Guide

resource-env-ref

Maps the res-ref-name in the corresponding Java EE 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 C–117 resource-env-ref Subelements

Element 

Required 

Description 

resource-env-ref-name

only one 

Specifies the res-ref-name in the corresponding Java EE 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>