users@jersey.java.net

Injectable fields not set on target object for proxied resource (using cglib)

From: Martin Grotzke <martin.grotzke_at_javakaffee.de>
Date: Fri, 07 Mar 2008 14:58:50 +0100

Hi,

I'm using spring as container and (as I wrote in another posting) want
to use spring AOP for some authentication/authorization stuff.

Unfortunately, if my resource is proxied (and that might happen
magically in spring ;)), injectable fields like UriInfo or
HttpServletRequest are only set on the proxy, but not on my object.

Is this an issue for jersey (can jersey handle this) or is this an issue
of the container in use / proxying mechanism?

Thanx in advance,
cheers,
Martin