Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 24711 invoked from network); 29 Nov 2007 19:52:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Nov 2007 19:52:19 -0000 Received: (qmail 30412 invoked by uid 500); 29 Nov 2007 19:52:03 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 30368 invoked by uid 500); 29 Nov 2007 19:52:03 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 30357 invoked by uid 99); 29 Nov 2007 19:52:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2007 11:52:03 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.181.65.237] (HELO sun.savoirtech.com) (209.181.65.237) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 29 Nov 2007 19:51:43 +0000 Received: from macpro.savoirtech.com (macpro.savoirtech.com [206.197.197.22]) (authenticated bits=0) by sun.savoirtech.com (8.14.1/8.13.8) with ESMTP id lATJphBj005181 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 29 Nov 2007 12:51:43 -0700 Message-ID: <474F184F.90903@apache.org> Date: Thu, 29 Nov 2007 12:51:43 -0700 From: Jeff Genender Reply-To: jgenender@apache.org Organization: Apache Geronimo User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: dev@geronimo.apache.org Subject: Re: Inserting a filter into the web container References: <74e15baa0711290905x6023859dn6c2f6a87b154df5d@mail.gmail.com> <474F0960.2060403@apache.org> <74e15baa0711291058w54871854la7cca9e73c845d8f@mail.gmail.com> In-Reply-To: <74e15baa0711291058w54871854la7cca9e73c845d8f@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.1.9 (2007-02-13) on sun.savoirtech.com X-Virus-Scanned: ClamAV 0.88.7/4954/Thu Nov 29 10:46:26 2007 on sun.savoirtech.com X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-104.0 required=5.6 tests=ALL_TRUSTED,AWL,BAYES_00, USER_IN_WHITELIST autolearn=ham version=3.1.9 Aaron Mulder wrote: > To me, AOP seems like it would be better if the application were doing > it, rather than trying to do it at the server configuration level. Yeah..but looking at the response by DJ, looks like the app server is gonna have to do it anyways ;-) My answer was similar to DJs in that an AOP adapter could pick something up from a JAR that it recognizes...just a different take on the same problem ;-) Jeff > > Thanks, > Aaron > > On Nov 29, 2007 1:48 PM, Jeff Genender wrote: >> Have you considered AOP? >> >> Jeff >> >> >> Aaron Mulder wrote: >>> Is there some good way to insert a filter/interceptor into the web >>> container request processing chain that would work for both Tomcat and >>> Jetty? For example, let's say you wanted to apply some particular >>> request validation/auditing functionality to every application, >>> without changing the application configuration (e.g. without updating >>> web.xml). It would be easy to write a little request filter or >>> interceptor to do it -- I'm just not sure what the best way is to hook >>> that in so it gets executed, and whether we have common >>> filters/interceptors for Tomcat and Jetty or whether you'd have to do >>> something different for each. >>> >>> Thanks, >>> Aaron >>