Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 63105 invoked from network); 4 Nov 2009 15:06:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Nov 2009 15:06:47 -0000 Received: (qmail 94987 invoked by uid 500); 4 Nov 2009 15:06:43 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 94908 invoked by uid 500); 4 Nov 2009 15:06:43 -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 94897 invoked by uid 99); 4 Nov 2009 15:06:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 15:06:43 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.61.61.103] (HELO usea-naimss1.unisys.com) (192.61.61.103) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 15:06:32 +0000 Received: from usea-nagw2.na.uis.unisys.com ([129.224.72.18]) by usea-naimss1 with InterScan Message Security Suite; Wed, 04 Nov 2009 09:06:09 -0600 Received: from usea-nagw2.na.uis.unisys.com ([129.224.72.53]) by usea-nagw2.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 4 Nov 2009 09:06:08 -0600 Received: from usea-nahubcas1.na.uis.unisys.com ([129.224.76.114]) by usea-nagw2.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 4 Nov 2009 09:06:08 -0600 Received: from USEA-EXCH8.na.uis.unisys.com ([129.224.76.42]) by usea-nahubcas1.na.uis.unisys.com ([129.224.76.114]) with mapi; Wed, 4 Nov 2009 09:06:08 -0600 From: "Caldarale, Charles R" To: Tomcat Users List Date: Wed, 4 Nov 2009 09:06:04 -0600 Subject: RE: ConnectionPool question Thread-Topic: ConnectionPool question Thread-Index: AcpdVq1d2VbRkm0mTh2lzZfd+OCyZwACDKuQ Message-ID: <99C8B2929B39C24493377AC7A121E21F967C354C6A@USEA-EXCH8.na.uis.unisys.com> References: <4d7e0b220910291817i390fc7ccu40afc1ec00012b83@mail.gmail.com> <4AEB5751.9060100@christopherschultz.net> <4d7e0b220910302138r18ac7d5fs710b2f42f078bfba@mail.gmail.com> <4AEF43C0.60708@christopherschultz.net> <4d7e0b220911031101w652af97eubcd85d717aaacf5b@mail.gmail.com> <4d7e0b220911031202j54b7c38k6ff771821793d6e4@mail.gmail.com> <4d7e0b220911031224o32741dbcvff05932df1397244@mail.gmail.com> <4d7e0b220911031306j7a365caelb60151fbf56f6d41@mail.gmail.com> <4d7e0b220911040556l70d17505sd8672a739861b94c@mail.gmail.com> In-Reply-To: <4d7e0b220911040556l70d17505sd8672a739861b94c@mail.gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 04 Nov 2009 15:06:08.0601 (UTC) FILETIME=[56AEA490:01CA5D60] X-Virus-Checked: Checked by ClamAV on apache.org > From: Josh Gooding [mailto:josh.gooding@gmail.com] > Subject: Re: ConnectionPool question >=20 > everytime I recycle a connection (close RS, statement, and the > connection) does it place it back into the pool or is that what the > abandoned connection messages are for letting me know they were > abandoned and put back into the pool? There are actually two sets of connection objects here: the real connection= to the DB server, and an associated connection wrapper that's visible to t= he webapp(s). If a webapp fails to close a connection wrapper and its asso= ciated real connection stays idle beyond the configured limit, the associat= ion between the wrapper and real connection is severed, the real connection= is returned to the pool, and the wrapper is discarded; it's at this time t= hat the log entry is made, containing the stack trace of the point where th= e wrapper was acquired by the webapp. When the webapp closes the wrapper, both the real connection and the wrappe= r are made available for reuse. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MA= TERIAL and is thus for use only by the intended recipient. If you received = this in error, please contact the sender and delete the e-mail and its atta= chments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org