tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikola Milutinovic <>
Subject Re: DBCP ClassCastException
Date Wed, 11 May 2005 06:10:05 GMT
Dhiren Bhatia wrote:

>I'm using BasicDataSource because javax.sql.DataSource does not have methods 
>to set the driver class name, url, username/pwd etc. My app needs to support 
>different databases and the driver is loaded based on which database is 

You've got it backwards. It is the responsibility of a J2EE container to 
use whatever the implementatio it likes and set those parameters and 
then give your application just javax.sql.DataSource. THAT will make 
your application portable.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message