Hi
On 25/07/12 16:37, hom wrote:
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"/>
Thanks for the patience and making it work :-).
I guess we can also use a camel transport URI within
jaxrs:server/@address; however, I'm interested to see how it can be set
up with the Camel RS Server component, I'll play a bit later on.
Cheers, Sergey
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.