Managing Resource References
This procedure enables you to set references to external resources. You can add, modify, or remove resource references in your web application.
The displayed tabs and fields correspond to the following elements:
In web.xml:
<!ELEMENT resource-ref (description?, res-ref-name, res-type, res-auth)>
<!ELEMENT res-ref-name (#PCDATA)>
<!ELEMENT res-type (#PCDATA)>
<!ELEMENT res-auth (#PCDATA)>
<!ELEMENT description (#PCDATA)>
In web-j2ee-engine.xml:
<!ELEMENT resource-ref (res-ref-name, res-link, , non-transactional?)>
<!ELEMENT res-ref-name (#PCDATA)>
<!ELEMENT res-link (#PCDATA)>
<!ELEMENT non-transactional (EMPTY)>
To set external resource references choose Environment ® Resource References.
If You Want To |
Then |
Add a new reference |
... 1. Enter the name of the reference in Resource Name. 2. Enter the name the resource is bound to the Naming System with in JNDI Name. 3. Enter resource reference description (optional).
4.
Choose
Add. |
Modify a resource reference |
... 1. Select a reference from the list of available ones.
2.
Modify the entered
information. 3. Choose Modify. |
Remove a resource reference |
Select the reference you want to remove from the list and choose Remove. |