tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikola Milutinovic <Nikola.Milutino...@ev.co.yu>
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 
>installed.
>  
>

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.

Nix.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message