users@jersey.java.net

auto injection for sub-resources

From: Cheng Zhang <zhangyongjiang_at_yahoo.com>
Date: Thu, 21 Jan 2010 22:33:09 -0800 (PST)

It seems that there is no autowire for the @context defined in the sub-resources.

I have a sub-resource which has two @Context fields

    protected @Context HttpContext hc;
    protected @Context ServletContext servletContext;

When debugging, I can see both hc and servletContext are null.

Did I miss anything here?

Thanks a lot,
Kevin