camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hom <tldsk...@sharklasers.com>
Subject Re: CXFRS does not process JSON
Date Wed, 25 Jul 2012 15:37:03 GMT
The journey comes to an end. I managed to create the json endpoint.
It does not use Camel but plain CXF.
This is the final configuration (quite simple actually ;-) ):

    <jaxrs:server id="providerPOXJSON" address="/xyz/json">
        <jaxrs:serviceBeans>
            <ref component-id="providerAdapter"/>
        </jaxrs:serviceBeans>
        <jaxrs:providers> 
          <ref component-id="jsonProvider" /> 
        </jaxrs:providers> 
    </jaxrs:server>

    <bean id="jsonProvider"
class="org.apache.cxf.jaxrs.provider.json.JSONProvider">
      <property name="inTransformElements">
        <map>
          <entry key="*" value="{http://xyz/types}*"/>
        </map>
      </property>
    </bean>

    <bean id="providerAdapter" class="org.xyz.ProviderAdapter"/>


Thank you very much for your help.

Cheers



--
View this message in context: http://camel.465427.n5.nabble.com/CXFRS-does-not-process-JSON-tp5716343p5716468.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message