I have tried, and definig only <Resource> in context.xml is sufficient,
<resource-ref> in web.xml was commented, but I still could acces database
connection from jndi.


On Thu, Apr 18, 2013 at 4:38 AM, Leo Donahue - RDSA IT <
leodona...@mail.maricopa.gov> wrote:

>
> ________________________________________
> From: Jakub 1983 [jjaku...@gmail.com]
> Sent: Wednesday, April 17, 2013 7:26 PM
> To: Tomcat Users List
> Subject: explanation of resource-ref in web.xml
>
> What the hell is <resource-ref> in web.xml used for ?
> ********************************************
>
> I use it in a context, to define a <Resource> such as a database
> connection.
>
> There is an example here:
> http://tomcat.apache.org/tomcat-7.0-doc/jndi-datasource-examples-howto.html#MySQL_DBCP_Example
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to