The following route works fine :
<bean id="reportIncidentService"
class="org.apache.camel.example.reportincident.restful.ReportIncidentService"
/>
<bean id="restProcessor"
class="org.apache.camel.example.reportincident.routing.RestFullProcessor"/>
<cxf:rsServer id="rsServer" address="/camel-rest-example/"
serviceClass="org.apache.camel.example.reportincident.restful.ReportIncidentService"
/>
<camel:camelContext trace="true"
xmlns="http://camel.apache.org/schema/osgi">
<camel:route>
<camel:from uri="cxfrs:bean:rsServer" />
<camel:bean ref="restProcessor" method="processRequest"/>
</camel:route>
</camel:camelContext>
but when I try to use in between a jms queue the exchange.getOut().setBody()
defined in the method processRequest is never returned to the camel cxfrs
endpoint
<camel:route>
<camel:from uri="cxfrs:bean:rsServer" />
<camel:to uri="jms:queue:in" />
</camel:route>
<camel:route>
<camel:from uri="jms:queue:in"/>
<camel:bean ref="restProcessor" method="processRequest"/>
</camel:route>
Regards,
Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer
*****************************
blog : http://cmoulliard.blogspot.com
twitter : http://twitter.com/cmoulliard
Linkedlin : http://www.linkedin.com/in/charlesmoulliard
Apache Camel Group :
http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm