users@jersey.java.net

[Jersey] Re: ClientFilters and AOP

From: Colin Vipurs <zodiaczx6_at_gmail.com>
Date: Mon, 19 Aug 2013 09:21:11 +0100

How have you tried to get AOP working on your resource methods? It's
definitely possible as it's something we have had running for quite some
time. There are some caveats which I can't remember in detail, but I'm
sure it's something like having to use an Interface and annotations must
appear on the interface, not the implementation.


On Sat, Aug 17, 2013 at 12:12 AM, Michael Childs <mchilds_at_ghx.com> wrote:

> Hi,****
>
> ** **
>
> I would like to automatically register ClientRequestFilter and
> ClientResponseFilter without having to add them to the client. For
> instance, the ContainerRequestFilter automatically registers and is run for
> every incoming request. However, I can only get the client filters to run
> if I directly register them with the client.****
>
> ** **
>
> Is this possible?****
>
> ** **
>
> Secondly – is it possible to use AOP on resource methods? All my attempts
> have failed to use spring AOP with jersey resource methods (to add logging
> before and after).****
>
> ** **
>
> Thanks****
>



-- 
Maybe she awoke to see the roommate's boyfriend swinging from the
chandelier wearing a boar's head.
Something which you, I, and everyone else would call "Tuesday", of course.