Details
Description
A CXF InInterceptor added to the rsServer via Spring is not added to the interceptor chain and therefore is not executed.
<cxf:rsServer id="service" address="/exampleService" serviceClass="com.example.service.ExampleService" loggingFeatureEnabled="true" xmlns:cxf="http://camel.apache.org/schema/cxf"> <cxf:providers> <bean class="com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider"/> </cxf:providers> <cxf:inInterceptors> <bean class="com.example.service.ExampleInInterceptor"/> </cxf:inInterceptors> </cxf:rsServer>
public class ExampleInInterceptor extends AbstractPhaseInterceptor<Message> { public ExampleInInterceptor() { super(Phase.RECEIVE); } @Override public void handleMessage(Message message) throws Fault { ... } }
The same configuration works with Camel Version 2.12.2.