Sun Java System Application Server Enterprise Edition 8.2 Developer's Guide

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–91 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>