tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: configuring JNDI resources in web.xml
Date Wed, 14 Nov 2001 03:50:35 GMT

On Tue, 13 Nov 2001, Christos Karras wrote:

> Date: Tue, 13 Nov 2001 22:55:07 -0500
> From: Christos Karras <>
> Reply-To: Tomcat Users List <>,
> To:
> Subject: configuring JNDI resources in web.xml
> According to the Tomcat JNDI Resources HOWTO, if I want to use a JDBC
> connection pool, I need to add settings both in server.xml and
> WEB-INF/web.xml. Would it be possible to configure it entirely in
> web.xml?

No, there is no way to do this.  The web.xml deployment descriptor format
is portable to all servlet containers, and the separation of configuration
information lets you modify the details of the data source configuration
*without* modifying the web application itself.

If you are dead set on configuring data sources inside your web.xml file,
you should investigate using a connection pool that is configured based on
servlet connection properties.

Craig McClanahan

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message