Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 93245 invoked from network); 28 Feb 2008 19:21:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Feb 2008 19:21:15 -0000 Received: (qmail 94433 invoked by uid 500); 28 Feb 2008 19:21:10 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 94394 invoked by uid 500); 28 Feb 2008 19:21:10 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 94385 invoked by uid 99); 28 Feb 2008 19:21:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Feb 2008 11:21:09 -0800 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.18.6.21] (HELO gmp-eb-inf-1.sun.com) (192.18.6.21) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Feb 2008 19:20:33 +0000 Received: from fe-emea-10.sun.com (gmp-eb-lb-2-fe2.eu.sun.com [192.18.6.11]) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m1SJKf0G020905 for ; Thu, 28 Feb 2008 19:20:41 GMT Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JWY00901QWFVX00@fe-emea-10.sun.com> (original mail from Kristian.Waagan@Sun.COM) for derby-dev@db.apache.org; Thu, 28 Feb 2008 19:20:41 +0000 (GMT) Received: from [129.159.112.188] by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JWY00CUBR2CAC90@fe-emea-10.sun.com> for derby-dev@db.apache.org; Thu, 28 Feb 2008 19:20:37 +0000 (GMT) Date: Thu, 28 Feb 2008 20:20:36 +0100 From: Kristian Waagan Subject: Re: ConnectionPoolDataSource properties In-reply-to: <47C70779.8060501@apache.org> Sender: Kristian.Waagan@Sun.COM To: derby-dev@db.apache.org Message-id: <47C70984.30501@Sun.com> Organization: Sun Microsystems Inc. MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <47C6E306.1060509@Sun.com> <47C6E60D.4010502@apache.org> <47C7014C.2020007@Sun.com> <47C70779.8060501@apache.org> User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; no-NO; rv:1.8.1.9) Gecko/20071119 Thunderbird/2.0.0.9 Mnenhy/0.7.5.0 X-Virus-Checked: Checked by ClamAV on apache.org Daniel John Debrunner wrote: > Kristian Waagan wrote: >> Daniel John Debrunner wrote: > >>> A pooling implementation is holding onto PooledConnection objects and >>> has some rules for how a logical connection request map to a given >>> pool (e.g. database TEST to pool A). If when the PooledConnection was >>> created it pointed to database TEST, but now points to database >>> PRODUCTION I think that would be a major surprise to a pooling >>> implementation. >> >> I don't think it's that severe, but my observation does hold for some >> properties. As far as I can see, the following data source properties >> are definitely updated for a logical connection when >> ClientPooledConnection.getConnection() is called: >> - user > > User name is severe, I was connecting as DAN but got switched to DBADMIN > :-). > > Unlikely to occur in real applications, but the CPDS should not allow this. Thanks for checking. I'll log a JIRA issue tomorrow, maybe I gain some more insight until then. -- Kristian > > Dan.