0 Replies Latest reply on Aug 1, 2013 9:44 AM by Alexander Sahler

    @Context injection in REST subresource does not work with camel-cxf

    Alexander Sahler Newbie

      Hello everybody!


      When trying to inject a ProducerTemplate into a REST subresource, it turns out that the injection does not work. While a root resource gets the correct object injected, the injection into the subresource doesn't take place.


      After debugging into the JAXRSInvoker class, it shows up that the injection performed in the 'invoke' call is only done in case cri.isRoot() holds (line 129 as of version 2.6.0-redhat-60024).


      Is this by intention?


      Best regards,