>
> By class variable do you mean field of a class? then no. You can do this:
>
> @Component
> @Scope("singleton")
> public class MyBean {
> @Context HttpServletRequest r; // thread local proxy is injected
>
>
> @GET
> public ... getIt(@Context HttpServletRequest r /* Independent of class scope*/)
> { ... }
> }
>
I guess I don't follow how the thread local proxy injection works. Do you need to access this field via the accessor methods then? Can you point me to a reference explaining how that works?
thanks,
-jr