Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 51502 invoked from network); 5 Feb 2004 13:16:42 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 5 Feb 2004 13:16:42 -0000 Received: (qmail 33609 invoked by uid 500); 5 Feb 2004 13:13:43 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 33546 invoked by uid 500); 5 Feb 2004 13:13:43 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 33449 invoked from network); 5 Feb 2004 13:13:42 -0000 Received: from unknown (HELO graftor.htk.fi) (195.156.245.50) by daedalus.apache.org with SMTP; 5 Feb 2004 13:13:42 -0000 Received: from graftortv (unknown [192.168.0.142]) by graftor.htk.fi (Postfix) with SMTP id DB3A7BE7E for ; Thu, 5 Feb 2004 15:13:41 +0200 (EET) From: "Tatu Vanhanen" To: "Jakarta Commons Users List" Subject: RE: DBCP Date: Thu, 5 Feb 2004 15:14:47 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal In-Reply-To: <00d101c3ebe8$ba8f4f40$6a00a8c0@DAN> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > Im new to using this form of connection pooling. > I want to know how to release connections back to the pool. By calling the close()- method of the connection ;) The connection instance retrieved from the pool is actually a pooled connection that puts itself back to the pool when close() is called. But remember to close the connection in a finally- block to ensure the connection is always put back to the pool, no matter what. - Tatu V. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org