Hi Yeah its a little bug I have logged a ticket https://issues.apache.org/jira/browse/CAMEL-6349
On Fri, May 10, 2013 at 4:08 PM, apatel <[email protected]> wrote: > > Below route does not return body, because route don't have any <to url > > > <route id="testLanguageFile" xmlns="http://camel.apache.org/schema/spring" > trace="true"> > <from uri="restlet:/myRestfulService/1.0/operationA?restletMethod=get"/> > <setBody> > <groovy>"Restful test" </groovy> > </setBody> > > </route> > > > Below route does return body, because route does have <to uri="mock:result" > /> > > <route id="testLanguageFile" xmlns="http://camel.apache.org/schema/spring" > trace="true"> > <from uri="restlet:/myRestfulService/1.0/operationA?restletMethod=get"/> > <setBody> > <groovy>"Restful test" </groovy> > </setBody> > > <to uri="mock:result" /> > </route> > > I know <to url set exchange in to exchange out, but why camel-restlet > component default set exchange.out= exchange.in? > > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Setting-Body-in-restlet-route-without-to-does-not-work-tp5732285.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
