users@jersey.java.net

[Jersey] Can _at_Context annotation be used be used in any class?

From: Farrukh Najmi <farrukh_at_wellfleetsoftware.com>
Date: Fri, 17 Feb 2012 09:03:37 -0500

Hi Guys,

I am trying to use the "@Context UriInfo uriInfo;" annotation in a
ObjectWRapper impl class for a freemarker template and finding that it
is not being set.
The package for the class is declared in the init property
"com.sun.jersey.config.property.packages" for the
com.sun.jersey.spi.spring.container.servlet.SpringServlet used by the
webapp for my REST endpoint.

Is there some other restriction that could be preventing jersey runtime
to be setting the "@Context UriInfo uriInfo;"?

Thanks for any guidance on this.

-- 
Regards,
Farrukh Najmi
Web: http://www.wellfleetsoftware.com