geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Genender <jgenen...@apache.org>
Subject Re: Inserting a filter into the web container
Date Thu, 29 Nov 2007 19:51:43 GMT


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 <jgenender@apache.org> 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
>>

Mime
View raw message