You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Joe Luo (JIRA)" <ji...@apache.org> on 2013/11/01 14:06:17 UTC

[jira] [Created] (CAMEL-6925) Provide an option on camel-jaxrs endpoint to allow injection of JAXRSServerFactory

Joe Luo created CAMEL-6925:
------------------------------

             Summary: Provide an option on camel-jaxrs endpoint to allow injection of JAXRSServerFactory
                 Key: CAMEL-6925
                 URL: https://issues.apache.org/jira/browse/CAMEL-6925
             Project: Camel
          Issue Type: New Feature
          Components: camel-cxf
    Affects Versions: 2.12.1
            Reporter: Joe Luo


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:
{code}
<jaxrs:providers>
            <bean class="org.apache.cxf.jaxrs.provider.json.JSONProvider">
                <property name="dropRootElement" value="true" />
                <property name="supportUnwrapped" value="true" />
            </bean>
</jaxrs:providers>
{code}

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.



--
This message was sent by Atlassian JIRA
(v6.1#6144)