tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Hanik - Dev Lists <devli...@hanik.com>
Subject Re: ConnectionPool question
Date Fri, 30 Oct 2009 15:54:19 GMT

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 Gooding<josh.gooding@gmail.com>wrote:
>
>    
>> 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


Mime
View raw message