You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Tapdur <ta...@gmail.com> on 2010/02/04 15:49:13 UTC
generic cxf rest consumer
Hi,
i am a newbie on camel and i want to use camel and cxfrs in a generic maner
between protocol and processeur (i don't want to glue the service to the
rest uri).
i want something like this
<bean id="cxfRsConsumer"
class="org.apache.camel.component.cxf.jaxrs.CxfRsConsumer" />
<jaxrs:server id="greetingService" address="/">
<jaxrs:serviceBeans>
<ref bean="cxfRsConsumer"/>
</jaxrs:serviceBeans>
</jaxrs:server>
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route>
<from
uri="cxfrs://http://localhost:9000/poc.camel.enabler-0.0.1-SNAPSHOT/greeting"/>
<to uri="file://c:/camellogs/logs.txt" />
</route>
</camelContext>
the initial request is something like that (via SOAPUI)
post http://localhost:9000/poc.camel.enabler-0.0.1-SNAPSHOT/greeting
<User>
<name>tapdur</tapdur>
</User>
and i want the body logs in the log file via a route:
so is it possible to declare a generic rest camel consumer that get the rest
body to the current camel route ?
Thx
--
View this message in context: http://old.nabble.com/generic-cxf-rest-consumer-tp27452217p27452217.html
Sent from the Camel - Users mailing list archive at Nabble.com.