I have a query related to the contents of element in context.xml file for Jndi look up and the resource-ref
element in web.xml . The Tomcat 5.5 reference gives an overview of the Resource
element.
As per the reference above , the valid attributes for
Resource
element areauth
,description
,name
,scope
,type
but we do includedriverClassName
,url
,username
,password
etc and a same is in the sample in the Tomcat docs. So is the explanation in the former link wrong?The reference states that the inclusion of the
<Resource>
element incontext.xml
file is equivalent to theresource-ref
element inweb.xml
. If so , can we give thedriverClassName
,url
,username
,password
and the remaining attributes inweb.xml
and give thecontext.xml
file a miss ? I don't think we can . So why is the reference so confusing?