commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz" <>
Subject Re: [DBCP] Newbie question again
Date Thu, 06 Sep 2007 19:46:52 GMT
On 9/6/07, simon <> 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:


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

View raw message