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

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

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.12.1
    • Fix Version/s: 2.11.3, 2.12.2, 2.13.0
    • Component/s: camel-cxf
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: