Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 5991 invoked from network); 30 Oct 2009 15:54:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Oct 2009 15:54:57 -0000 Received: (qmail 2003 invoked by uid 500); 30 Oct 2009 15:54:53 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 1921 invoked by uid 500); 30 Oct 2009 15:54:53 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 1910 invoked by uid 99); 30 Oct 2009 15:54:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2009 15:54:53 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [72.22.94.67] (HELO virtual.halosg.com) (72.22.94.67) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2009 15:54:43 +0000 Received: (qmail 10074 invoked from network); 30 Oct 2009 10:54:23 -0500 Received: from 38-171-19-72.skybeam.com (HELO ?192.168.3.123?) (72.19.171.38) by halosg.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 30 Oct 2009 10:54:22 -0500 Message-ID: <4AEB0C2B.1070903@hanik.com> Date: Fri, 30 Oct 2009 09:54:19 -0600 From: Filip Hanik - Dev Lists User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: ConnectionPool question References: <4d7e0b220910291817i390fc7ccu40afc1ec00012b83@mail.gmail.com> <4AEAEFF7.9010004@hanik.com> <4d7e0b220910300657j2e9232aege353aaca56a4aefb@mail.gmail.com> <4d7e0b220910300734i78979486qf50867c6ea703e54@mail.gmail.com> In-Reply-To: <4d7e0b220910300734i78979486qf50867c6ea703e54@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org http://svn.apache.org/viewvc/tomcat/trunk/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/interceptor/StatementFinalizer.java?view=log Filip On 10/30/2009 08:34 AM, Josh Gooding wrote: > Hey what API holds the statementFinalizer? > > On Fri, Oct 30, 2009 at 9:57 AM, Josh Goodingwrote: > > >> AHHHHHH, I will read the API for the StatementFinalizer. I was looking at >> something to do that. Thank you Filip! >> >> >> On Fri, Oct 30, 2009 at 9:53 AM, Filip Hanik - Dev Lists< >> devlists@hanik.com> wrote: >> >> >>> hi Josh, calling Connection.close() does not close statements and >>> resultsets. >>> There is an interceptor you can configure called StatementFinalizer that >>> does exactly that during the close call. >>> >>> Filip >>> >>> >>> >>> On 10/29/2009 07:17 PM, Josh Gooding wrote: >>> >>> >>>> I wrote some code on top of the Tomcat's ConnectionPool class. In >>>> regular >>>> Java based programming if I close a ResultSet with connection.close(), >>>> this >>>> frees up both the statement and resultset's memory associated with the >>>> connection if it was still open. If I close a connection with Tomcat's >>>> ConnectionPool, does it also close the statement and resultset's >>>> associated >>>> with that particular connection or do I need to manually close them? >>>> >>>> I know best practice is to not rely on anything to be closed >>>> automatically, >>>> but I inherited a code base and I am looking at making some pretty >>>> significant changes to fix some problems, and this is one of them. >>>> >>>> Thanks in advance, >>>> >>>> - Josh >>>> >>>> >>>> >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>> For additional commands, e-mail: users-help@tomcat.apache.org >>> >>> >>> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org