camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tapdur <>
Subject generic cxf rest consumer
Date Thu, 04 Feb 2010 14:49:13 GMT


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="/">
	      <ref bean="cxfRsConsumer"/>

	<camelContext id="camel" xmlns="">
	    	<to uri="file://c:/camellogs/logs.txt" />

the initial request is something like that (via SOAPUI)

post http://localhost:9000/poc.camel.enabler-0.0.1-SNAPSHOT/greeting

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 ?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message