users@jersey.java.net

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

From: Martin Grotzke <martin.grotzke_at_freiheit.com>
Date: Tue, 18 Nov 2008 09:08:58 +0100

On Mon, 2008-11-17 at 11:56 +0100, Paul Sandoz wrote:
> 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.
Hopefully ;)

Do you still have some error message?

Cheers,
Martin

>
> 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
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net

-- 
Martin Grotzke
http://www.javakaffee.de/blog/