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

Provide an option on camel-jaxrs endpoint to allow injection of JAXRSServerFactory

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.12.1
    • 2.11.3, 2.12.2, 2.13.0
    • camel-cxf
    • None
    • Unknown

    Description

      There is an use case where we might want to inject a jaxrs provider and override provider properties in Java code just like what below Spring bean does:

      <jaxrs:providers>
                  <bean class="org.apache.cxf.jaxrs.provider.json.JSONProvider">
                      <property name="dropRootElement" value="true" />
                      <property name="supportUnwrapped" value="true" />
                  </bean>
      </jaxrs:providers>
      

      However, it requires to build a JAXRSServerFactory to inject the CXFRSEndpoint. But it is no way to inject JAXRSServerFactory myself. So we might need to provide an option on camel-jaxrs endpoint to allow injection of a JAXRSServerFactory instance.

      Attachments

        Activity

          People

            njiang Willem Jiang
            joeluo Joe Luo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: