users@jersey.java.net

Re: [Jersey] Added spring-aop resource to spring-annotations sample

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 17 Nov 2008 11:56:08 +0100

Thanks. To get things to work i first had to change the following in
the pom:

   <spring25-release-version>[2.5.2,)</spring25-release-version>

to:

   <spring25-release-version>2.5.2</spring25-release-version>

build, then change it back to work. I guess it must be a glitch in my
local set up.

Paul.


On Nov 15, 2008, at 3:09 AM, Martin Grotzke wrote:

> Hi,
>
> for those who are interested: I just added a resource class to the
> spring-annotations sample that shows how to use spring-aop with
> jersey.
>
> This is not limited to spring-2.5 but can also be used with
> spring-2.0.
>
> The only requirement is that the resource class is managed by spring,
> everything else is just spring-aop. If subresource classes shall be
> proxied by spring, the subresource locator needs to fetch the
> subresource instance from the ResourceContext (shown in the example).
>
> Cheers,
> Martin
>