Hi

Sounds like a streaming issue. See this page
http://camel.apache.org/why-is-my-message-body-empty.html

On Mon, Sep 1, 2014 at 4:32 PM, OysteinAndersen
<[email protected]> wrote:
> Just so you know, I'm a newbie. A
>
> This is my Context:
>
>   <camelContext trace="false" id="pg_rest_demo"
> xmlns="http://camel.apache.org/schema/blueprint";>
>     <route customId="true" id="RouteRestDemo">
>         <from
> uri="restlet:http://localhost:9000/demo?restletMethods=GET,POST"/>
>         <setHeader headerName="aa">
>             <simple>${in.body}</simple>
>         </setHeader>
>         <log message="Payload: ${header.aa}"/>
>         <to uri="direct:toQueue"/>
>         <transform>
>             <simple>Thanks for your ${header.CamelHttpMethod} message, have
> a nice day! ${in.header.aa} The End</simple>
>         </transform>
>     </route>
>     <route customId="true" id="RouteToQueue" >
>         <from uri="direct:toQueue"/>
>         <log message="Payload in RouteToQueue ${header.aa}"/>
>         <to uri="mock:theend"/>
>     </route>
> </camelContext>
>
> The problem is that the payload are shown in the first log, but not in the
> respose message and not in the second log output from the route
> "RouteToQueue".
>
> Best regards
> Öystein Andersen
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Using-restlet-as-post-how-to-use-the-body-tp5755931.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to