Hello James,
you can annotate ResourceConfig descendant with @ApplicationPath as well
(ResouceConfig extends Application), so somehing like
@ApplicationPath("myApplicationPath")
public class MyApplication extends PackagesResourceConfig {
public MyApplication() {
super("org.mycompany.rest.resources");
getProperties().put("...", "...");
}
}
should work.
Regards,
Pavel
On 8/11/12 12:08 PM, James Shaw wrote:
> I'm trying to enable POJO JSON mapping with Jersey 1.13 using an
> Application class annotated with @ApplicationPath("/")
>
> As far as I can tell, the feature isn't being picked up by
> JacksonProviderProxy: setFeaturesAndProperties() is receiving an
> instance of DeferredResourceConfig which has no features set.
>
> Am I doing something wrong or could this be a bug? I'll try and
> reduce this to a test case if it's necessary.
>
>