commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz" <phil.ste...@gmail.com>
Subject Re: [DBCP] Newbie question again
Date Thu, 06 Sep 2007 19:46:52 GMT
On 9/6/07, simon <skitching@apache.org> wrote:
> Yep. Oracle really screwed up with their drivers. An old one which is
> not compatible with new DBs. A new one that is not backwards compatible.
> And both use the same classname. Sigh.
>
> Stephane, your English was fine the first time, I just think that very
> few people have needed to load both the old and new drivers at the same
> time (which is what I presume you are trying to do).
>
> I think you are really asking why DBCP doesn't provide a way for code to
> pass the driver class in, rather than just pass the name of the driver
> class in. In other words, why BasicDataSource has
>   public void setDriverClassName(String name)
> but not
>   public void setDriverClass(Class clazz);
>
> Is that right?

This is not possible with BasicDataSource, but you can load the driver
yourself by following the ManualPoolingDataSource example here:
http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/doc/

Phil

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


Mime
View raw message