Hi Craig,
> The problem I'm having is that the sub-resource instance returned by
> getCustomerResource() does not receive any injections like "@Context
> UriContext context". Thus, if my formatCustomer() method tries to
> access the context (in my case, so that I can generate link URIs based
> on the base URI of this request), I get NPEs.
>
> How can I code the getCustomerResource() method in such a way that the
> returned instance gets injections performed in the usual way? I'd
> imagine that I would need to invoke some factory method provided by
> the JAX-RS implementation, but it's not clear how one might accomplish
> that.
the JAX-RS runtime never injects in instances created by sub resource
methods.
But I think, that it is a useful feature.
best regards
Stephan