Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7341

CXFRS: InInterceptor defined in Spring is ignored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.12.3, 2.13.0
    • 2.12.4, 2.13.1, 2.14.0
    • camel-cxf
    • None
    • Unknown

    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.

      Attachments

        Activity

          People

            njiang Willem Jiang
            s.schuster Stephan Schuster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: