Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 53727 invoked from network); 21 Oct 2004 16:28:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 Oct 2004 16:28:12 -0000 Received: (qmail 73258 invoked by uid 500); 21 Oct 2004 16:28:01 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 73196 invoked by uid 500); 21 Oct 2004 16:28:00 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 73174 invoked by uid 99); 21 Oct 2004 16:28:00 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [80.6.91.148] (HELO abmukdove.abm-uk.com) (80.6.91.148) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 21 Oct 2004 09:27:58 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4B78A.EB1705AE" Subject: [DBCP] per-user connection pooling Date: Thu, 21 Oct 2004 17:27:55 +0100 Message-ID: <85246635F4B873488A4020DFBA2E11220158238E@abmukdove.abm-uk.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [DBCP] per-user connection pooling thread-index: AcS3iurj8sc4sxY7SlKsbEKGAZA+LQ== From: "Chris Nappin" To: "Jakarta Commons Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C4B78A.EB1705AE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 I've been trying to get per-user connection pooling working with Oracle 9i, Tomcat and DBCP: i.e. NOT putting any username or password in the JNDI settings, then calling "getConnection(username, password)" instead of "getConnection()". =20 As far as I can see there are two approaches with DBCP: =20 1. use the driver "directly" via org.apache.commons.dbcp.BasicDataSourceFactory; 2. use the driver "indirectly" via the DriverAdapterCPDS wrapper functionality and org.apache.commons.dbcp.datasources.PerUserPoolDataSourceFactory. =20 The second method may be fixed in the next nightly build (thanks Dirk Verbeeck) but so far seems to be quite slow (only 10% quicker than direct connections). Has anyone ever got the first method working? I get an exception thrown from the Oracle Driver itself: =20 java.sql.SQLException: invalid arguments in call at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179) at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1160) at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:183) at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:346) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java: 468) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314) at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverC onnectionFactory.java:37) =20 I've raised an iTAR (bug report) with Oracle but the comments so far from Oracle support have been to put the blame on the JNDI/DBCP code... =20 Regards =20 Chris Nappin Senior Analyst Programmer =20 ABM United Kingdom Limited Telephone: +44 (0) 115 977 6999 Facsimile: +44 (0) 115 977 6850 Web: http://www.abm-uk.com =20 ABM for Intelligent Solutions =20 The information contained in this email is intended only for the named recipient(s) and may be confidential and/or privileged. Unauthorised use or reproduction (including storage or re-distribution in any media) is prohibited. =20 ABM-United Kingdom Limited may monitor the content of e-mails and files sent and received via its network for the purposes of ensuring compliance with its legal obligations and its policies and procedures.=20 =20 ------_=_NextPart_001_01C4B78A.EB1705AE--