Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F417711FA7 for ; Wed, 16 Apr 2014 09:33:49 +0000 (UTC) Received: (qmail 71797 invoked by uid 500); 16 Apr 2014 09:33:44 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 71696 invoked by uid 500); 16 Apr 2014 09:33:44 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 71670 invoked by uid 99); 16 Apr 2014 09:33:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2014 09:33:43 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of r.gambelli@gmail.com designates 74.125.83.47 as permitted sender) Received: from [74.125.83.47] (HELO mail-ee0-f47.google.com) (74.125.83.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2014 09:33:36 +0000 Received: by mail-ee0-f47.google.com with SMTP id b15so8528748eek.6 for ; Wed, 16 Apr 2014 02:33:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=eLuqMC8iomddHUT4/e09w5Op47XxkSIXcTcoNaeju8o=; b=tCiUamIY+CucXxR67qQPdald2gw13NsFO0yH4nYXRfKdYbSKPB5XNSgs3hoK5FQQy0 eRPHnqbo9ZFLOWf2fNb8GZBaW1vfZMqgMUnqifAabtQO6huyFwfetEU4uY2Lg5COAr+n ZlqzgK/gmHSZUXdxY8d8PP3oMiqUKseuIFuSoauxhce/6s+WsbMH6CxHt7RzXQs2wAbn rq3/XmDwLDzo6NRiYfLOHYEQbSXGE2Tite+u3DnbIQXsbo/TwYaG0Wo9nRYjXuhYdY5o Z9v4P2bgVCyIOWop1vJ3VLdQY1P7DNs8oozrgYoSP0zCbgdhntxyJNhNcYOl3iRxq4kA CVvw== X-Received: by 10.14.4.201 with SMTP id 49mr3782804eej.13.1397640795136; Wed, 16 Apr 2014 02:33:15 -0700 (PDT) Received: from [192.168.22.78] (2-228-162-210.ip192.fastwebnet.it. [2.228.162.210]) by mx.google.com with ESMTPSA id o4sm56343272eef.20.2014.04.16.02.33.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Apr 2014 02:33:14 -0700 (PDT) Message-ID: <534E4E59.8090307@gmail.com> Date: Wed, 16 Apr 2014 11:33:13 +0200 From: Raffaele Gambelli User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: user@commons.apache.org Subject: [dbcp] - How to programmatically check the pool status? Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I'm using Tomcat 6.0.26 and its default dbcp connection pooling system (tomcat-dbcp.jar inside the default installation dir) My question is: How could I check programmatically the connection pool status ? For example inside a catch of some exception related to some database issues I would like to log some info like the number of currenlty open connections, idle etc... Thanks in advance and best regards Raffaele Gambelli --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org