On 9/6/07, simon <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
