Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A69BD188BA for ; Sun, 9 Aug 2015 00:18:02 +0000 (UTC) Received: (qmail 47988 invoked by uid 500); 9 Aug 2015 00:18:02 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 47802 invoked by uid 500); 9 Aug 2015 00:18:02 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 47790 invoked by uid 99); 9 Aug 2015 00:18:01 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Aug 2015 00:18:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 918031A9AE3 for ; Sun, 9 Aug 2015 00:18:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.121 X-Spam-Level: X-Spam-Status: No, score=-0.121 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id H-dkkqT7F3Lj for ; Sun, 9 Aug 2015 00:18:00 +0000 (UTC) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 0C97442BAE for ; Sun, 9 Aug 2015 00:17:14 +0000 (UTC) Received: by pacrr5 with SMTP id rr5so77323845pac.3 for ; Sat, 08 Aug 2015 17:17:06 -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:references :in-reply-to:content-type:content-transfer-encoding; bh=WvTc3cTicn5oL/wSvMEnJusbwMlja+64I+eIIJ6JrT4=; b=0ATFiGks5ZBtLJ1jezZiKzdazkkcO/OPVurFBzWCi2X1UVtTWheYEhiM5AMDJIOzum +zJkawPoIAAmj3IKP/o6FLVo/fsE5aNJybPjucK17n4UJ1ckFTj8V7vWR78X6TIpCYb+ hS24QlGcPOOyrXTIUsF688GwQGP2ryHTvvvYJlG+ee/WZhZStnN2Fi6iIWYCNE1p/lPm VCw5y5Qr3YNvgFPSS/XJNEjXJFpkWHBTfa0nY51BV6eYi8dV6GQ+slSIX04azw3F0IHB 6O2mQ+5xMAIOYhZ+UQWfD5/2yi5pF955BuiKsIofHSCo180wGrjnoh4scQghMJWhh/gS ntUQ== X-Received: by 10.68.220.132 with SMTP id pw4mr29911725pbc.149.1439079426631; Sat, 08 Aug 2015 17:17:06 -0700 (PDT) Received: from psteitz-mbp.local (ip68-106-39-89.ph.ph.cox.net. [68.106.39.89]) by smtp.googlemail.com with ESMTPSA id q7sm14807353pdj.31.2015.08.08.17.17.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Aug 2015 17:17:05 -0700 (PDT) Message-ID: <55C69BFF.1020207@gmail.com> Date: Sat, 08 Aug 2015 17:17:03 -0700 From: Phil Steitz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Commons Developers List Subject: Re: [pool] Interceptors References: <55C69232.8070400@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 8/8/15 5:04 PM, James Carman wrote: > We talked about this a while back with respect to logging,, having a > PoolListener interface or something. Right. That could be one use. The nice thing there is the interceptor could bring in whatever logging / event propagation infrastructure it wanted to use. Phil > On Sat, Aug 8, 2015 at 7:36 PM Phil Steitz wrote: > >> Tomcat's jdbc-pool has an interceptor feature that allows custom >> code to be inserted into methods called on connections managed by >> the pool. In [pool], we have the core infrastructure to support >> this in a generic way via the ProxiedObjectPool. I propose that we >> extend this to allow users to configure interceptors to be called >> when registered methods are invoked on checked out objects. I >> haven't really thought through how configuration would work, but >> basically clients would register methods and possibly interceptor >> properties and the interceptors would get references to the method, >> arguments, pool and pooled object. Configuring interceptors in a >> GOP or GKOP would cause it to be wrapped in a ProxiedObjectPool. >> Eventually, we could use this [pool] capability to enable the kind >> of thing that jdbc-pool provides with its interceptors in DBCP. >> With [pool] itself, I could see providing method stats collectors, >> abandoned timer reset (avoiding having to implement use()) and maybe >> a pooled object properties cache. If there are no objections, I >> will open a JIRA and start experimenting. >> >> Phil >> >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >> For additional commands, e-mail: dev-help@commons.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org