On Tue, 13 Nov 2001, Christos Karras wrote:
> Date: Tue, 13 Nov 2001 22:55:07 -0500
> From: Christos Karras <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> 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: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>