Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 40168 invoked from network); 27 Dec 2005 09:33:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Dec 2005 09:33:35 -0000 Received: (qmail 33838 invoked by uid 500); 27 Dec 2005 09:33:35 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 33511 invoked by uid 500); 27 Dec 2005 09:33:34 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 33496 invoked by uid 99); 27 Dec 2005 09:33:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Dec 2005 01:33:33 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [194.175.229.106] (HELO mail.seitenbau.net) (194.175.229.106) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Dec 2005 01:33:33 -0800 Received: from [195.127.188.18] (helo=www.seitenbau.net) by router1.seitenbau.net with esmtp (Exim 4.43) id 1ErBCi-0005Hf-Hu for torque-user@db.apache.org; Tue, 27 Dec 2005 10:33:12 +0100 In-Reply-To: <43AC10E2.40306@dbamsystems.com> Subject: RE: Getting number of DB connections torque currently has To: "Apache Torque Users List" X-Mailer: Lotus Notes Release 6.5 September 26, 2003 Message-ID: From: Thomas Fischer Date: Tue, 27 Dec 2005 10:33:10 +0100 X-MIMETrack: Serialize by Router on www/seitenbau(Release 6.5.1|January 21, 2004) at 27.12.2005 10:33:11 AM MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, in the current Torque API, there is no way to get the Connection pool. I would guess this is an anti-feature. If you are ready to patch Torque, you can change the relevant methods in TorqueInstance to public. If not, only a hack comes to my mind: Configure the pool in JNDI, use the JndiDataSource to get hold of the pool in Torque, and use also JNDI to get the pool for asking it for its connections. Thomas John Dunne schrieb am 23.12.2005 15:59:46: > Hello All, > > Is there any way to get hold of the number of connections that Torque > currently has open to a particular database.... From what I can see, I > need to get hold of the relevant DataSource object (SharedDataSource). > Anyone know how I can get hold of this object??? > > Thanks in advance. > John. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > For additional commands, e-mail: torque-user-help@db.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org