Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 77323 invoked from network); 20 Dec 2004 14:18:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 Dec 2004 14:18:05 -0000 Received: (qmail 68415 invoked by uid 500); 20 Dec 2004 14:15:14 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 68337 invoked by uid 500); 20 Dec 2004 14:15:13 -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 68289 invoked by uid 99); 20 Dec 2004 14:15:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mailsvr.pt.lu (HELO mailsvr.pt.lu) (194.154.192.108) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 20 Dec 2004 06:15:08 -0800 Received: from hydrogen (pppoe47-99-luxdsl-063.pt.lu [83.99.47.63]) by mailsvr.pt.lu with ESMTP id iBKEEul5011002 for ; Mon, 20 Dec 2004 15:14:58 +0100 Date: Mon, 20 Dec 2004 15:15:22 +0100 From: "David Tonhofer, m-plify S.A." To: Jakarta Commons Users List Subject: Re: [dbcp] using pooling in standalone applications Message-ID: In-Reply-To: <1103540204.2890.21.camel@chr-05.oma.be> References: <1103540204.2890.21.camel@chr-05.oma.be> X-Mailer: Mulberry/3.1.5 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Probably by adding a shutdown hook using java.lang.Runtime.addShutdownHook(). The hook will have to loop over all the open Connections registered in Jakarta Pooling and close() them. The problem is, how does it find those Connections? --On Monday, December 20, 2004 11:56 AM +0100 Henk Schets wrote: > Hi, > > I am using dbcp pooling connections in a standalone application. It > works nicely but there is one thing : when the application closes (and > the jvm too), the connection is not being closed nicely. Is this > normal behaviour ? What can I do to correct this ? > > Thanks, > > Henk > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > > -- David Tonhofer M-PLIFY S.A. Resp. Informatique 47, av. de la Libert=E9 L-1931 Luxembourg Tel: +352 261846-52 Fax: +352 261846-46 Mob: +352 021-139031 --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org