Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 25322 invoked from network); 6 Sep 2007 19:47:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Sep 2007 19:47:28 -0000 Received: (qmail 87160 invoked by uid 500); 6 Sep 2007 19:47:18 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 87097 invoked by uid 500); 6 Sep 2007 19:47:18 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 87088 invoked by uid 99); 6 Sep 2007 19:47:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 12:47:18 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of phil.steitz@gmail.com designates 64.233.182.186 as permitted sender) Received: from [64.233.182.186] (HELO nf-out-0910.google.com) (64.233.182.186) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 19:47:15 +0000 Received: by nf-out-0910.google.com with SMTP id c10so236526nfd for ; Thu, 06 Sep 2007 12:46:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ysde31dj6I8mVbwLP5xdhGWjYdCHjn4/EasShpbsGtE=; b=DDHg/58dQjdd6UIehZukcSxjBfHpIq2XTwNobTHpoxRDv/I4uY0NgiOUgMJjMDhisDyMUI/DrqchCrI29+Bdgq7s5J4WTCRKnUYcSLJXhlWemq62NoHzZ0eJvu+0mkdQbo3smcFqNLeU0WUFtryJjfCwiArxD3hyx8B+WtQxycA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tmNk90X2y3UMaJH/jqNfRnSlfmmHA2imglr8cCIpWRlvAG6EJR1LKF/kSDW4qVVqvIY1ZL2yMj1moNL3+vUPi54vDf+lmGujK98KO4IeKOQbYudyzf+9MLt3kQsUSI1We21O6kHzeaGl+/3q2LagVXdkjYBy0szz0kD7bnRul84= Received: by 10.78.176.20 with SMTP id y20mr462035hue.1189108012403; Thu, 06 Sep 2007 12:46:52 -0700 (PDT) Received: by 10.78.151.9 with HTTP; Thu, 6 Sep 2007 12:46:52 -0700 (PDT) Message-ID: <8a81b4af0709061246l13c46dfdhe68fb0ae03aa9e5c@mail.gmail.com> Date: Thu, 6 Sep 2007 12:46:52 -0700 From: "Phil Steitz" To: "Jakarta Commons Users List" Subject: Re: [DBCP] Newbie question again In-Reply-To: <1189107511.6100.10.camel@simon-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <0MKwpI-1ITKvY2R4s-0002Tw@mrelayeu.kundenserver.de> <1189107511.6100.10.camel@simon-laptop> X-Virus-Checked: Checked by ClamAV on apache.org 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: 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