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.
