If someone is looking for solution on the same problem (CFX 2.1.2, Spring
2.5.5)

    <util:map id="jsonNamespaceMap" map-class="java.util.Hashtable">
        <entry key="http://www.example.com/shakedown"; value="e" />
        <entry key="http://cxf.apache.org/bindings/xformat"; value="cxf" />
    </util:map>
    <bean id="jsonProvider"
class="org.apache.cxf.jaxrs.provider.JSONProvider">
        <property name="namespaceMap" ref="jsonNamespaceMap" />
    </bean>
    <jaxrs:server id="jsonRestEndpoint" address="/system">
        <jaxrs:serviceBeans>  <ref bean="restImpl" />  </jaxrs:serviceBeans>
        <jaxrs:providers>  <ref bean="jsonProvider" />  </jaxrs:providers>
    </jaxrs:server>

You can see JIRA CXF-1671 for some implementation details.
-- 
View this message in context: 
http://www.nabble.com/CXF-JSON-and-Servlet-transport-configuration-tp19643091p19657451.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to