Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 62597 invoked from network); 28 Jul 2005 17:33:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jul 2005 17:33:43 -0000 Received: (qmail 58776 invoked by uid 500); 28 Jul 2005 17:33:42 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 58749 invoked by uid 500); 28 Jul 2005 17:33:42 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 58731 invoked by uid 99); 28 Jul 2005 17:33:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jul 2005 10:33:41 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.36] (HELO brmea-mail-4.sun.com) (192.18.98.36) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jul 2005 10:33:33 -0700 Received: from phys-d3-ha21sca-1 ([129.145.155.163]) by brmea-mail-4.sun.com (8.12.10/8.12.9) with ESMTP id j6SHXdr3029587 for ; Thu, 28 Jul 2005 11:33:39 -0600 (MDT) Received: from conversion-daemon.ha21sca-mail1.sfbay.sun.com by ha21sca-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IKC00C01M1BM8@ha21sca-mail1.sfbay.sun.com> (original mail from Richard.Hillegas@Sun.COM) for derby-dev@db.apache.org; Thu, 28 Jul 2005 10:33:39 -0700 (PDT) Received: from [127.0.0.1] (vpn-129-150-25-218.SFBay.Sun.COM [129.150.25.218]) by ha21sca-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0IKC00MH1M42U7@ha21sca-mail1.sfbay.sun.com> for derby-dev@db.apache.org; Thu, 28 Jul 2005 10:33:39 -0700 (PDT) Date: Thu, 28 Jul 2005 10:33:48 -0700 From: Rick Hillegas Subject: Re: [jira] Updated: (DERBY-478) Function to force closing connection (and session) In-reply-to: <42E9143C.7090300@debrunners.com> To: Derby Development Message-id: <42E916FC.4000407@sun.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) References: <1999324040.1122563182740.JavaMail.jira@ajax.apache.org> <42E908EE.5050000@sun.com> <42E91364.9030205@sun.com> <42E9143C.7090300@debrunners.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I agree with Dan. PooledConnection exposes a getConnection() method which returns its wrapped Connection object. I suspect the intention is that that Connection is itself a wrapper whose close() method deliberately does not close the underlying physical Connection. Being able to close the underlying Connection would work at cross-purposes to the whole idea of Connection pooling. It would be interesting to understand the problem that this enhancement is wrestling with. Nakayama-san, can you shed some more light on your reasons for logging this bug? Thanks, -Rick Daniel John Debrunner wrote: >Rick Hillegas wrote: > > >>Hi David, >> >>Where in the JDBC 4 spec would this be? I seem to have missed it. >>There's a fairly long section on Connection Pooling, but I didn't see >>this issue addressed. >> >> > >I'm not sure it should be. Applications should not have the ability to >close the underlying physical connection from their logical connection >object. An api exists to close the physical connection, the close method >on PooledConnection. But applications do not (and should not) have >access to PooledConnection. > >Dan. > > > > > > >>Thanks, >>-Rick >> >>David Van Couvering wrote: >> >> >> >>>Isn't this part of the proposed interfaces for the JDBC 4 spec? >>> >>>Tomohito Nakayama (JIRA) wrote: >>> >>> >>> >>>> [ http://issues.apache.org/jira/browse/DERBY-478?page=all ] >>>> >>>>Tomohito Nakayama updated DERBY-478: >>>>------------------------------------ >>>> >>>> Summary: Function to force closing connection (and session) >>>>(was: Force to close connection and session) >>>> Description: When connection exists in ConnectionPool , there are >>>>no way to ensure closing connection inside the ConnectionPool from >>>>application program just using jdbc interface. >>>> >>>>I think there exists needs to force closing connection when it is >>>>needed to ensure closing of connection. was:When connection exists >>>>in ConnectionPool , there are no way to ensure >>>> >>>> >>>> >>>> >>>> >>>>>Function to force closing connection (and session) >>>>>-------------------------------------------------- >>>>> >>>>> Key: DERBY-478 >>>>> URL: http://issues.apache.org/jira/browse/DERBY-478 >>>>> Project: Derby >>>>> Type: Improvement >>>>> Components: Network Server >>>>> Reporter: Tomohito Nakayama >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>>> >>>>>When connection exists in ConnectionPool , there are no way to >>>>>ensure closing connection inside the ConnectionPool from application >>>>>program just using jdbc interface. >>>>>I think there exists needs to force closing connection when it is >>>>>needed to ensure closing of connection. >>>>> >>>>> >>>> >>>> >>>> >>>> >>>> >> >> >> > > > >