tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Balazuc" <denis.bala...@trader.com>
Subject Re: Where to place JDBC drivers? How? SOLUTION FOUND!
Date Wed, 28 Nov 2001 19:25:18 GMT
If you have only one web-app that references this driver, you should put it
in WEB-INF/lib.
This allows for better maintenance and management of your libraries and
dependencies.
To reference/load the driver classname, you could use a parameter entry in
the web.xml file...
You could even have a startup servlet to load the driver in DriverManager
and/or have it available through some lookup system such as a JNDI service.

I think this is cleaner than having it in Tomcat/common/lib UNLESS you want
those drivers to be available for all web-apps you create.


----- Original Message -----
From: "Mike Kelley" <MikeK@M-V-T.COM>
To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
Sent: Wednesday, November 28, 2001 02:02 PM
Subject: RE: Where to place JDBC drivers? How? SOLUTION FOUND!


> (for my tower of cards at least)
> I'm new to all this and this is probably not the best solution BUT
> Placing my new JDBC.jar driver files within the Tomcat 4.0/common/lib/
> folder got things to work .....
>
>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message