Sun Java System Web Server 7.0 Update 6 Developer's Guide to Java Web Applications

resource-ref Element

This element maps the res-ref-name Element in the corresponding Java EE web.xml file resource-ref entry to the absolute jndi-name Element of a resource.

Subelements

The following table describes subelements for the resource-ref element. The left column lists the subelement name, the middle column indicates the requirement rule, and the right column describes what the element does.

Table A–27 resource-ref Subelements

Element 

Required 

Description 

res-ref-name Element

only one 

Specifies the res-ref-name in the corresponding Java EE web.xml file resource-ref entry

jndi-name Element

only one 

Specifies the absolute jndi-name of a resource

default-resource-principal Element

zero or one 

Specifies the default principal (user) for the resource 

Attributes

none