RE: Why is the set body not being returned?

2016-09-22 Thread sim085
and redirects to the given location. -- View this message in context: http://camel.465427.n5.nabble.com/Why-is-the-set-body-not-being-returned-tp5787905p5787938.html Sent from the Camel - Users mailing list archive at Nabble.com.

RE: Why is the set body not being returned?

2016-09-22 Thread Siano, Stephan
: Donnerstag, 22. September 2016 13:35 To: users@camel.apache.org Subject: Re: Why is the set body not being returned? Hello again. It seems that it is something in the headers. I have added ".removeHeaders("*")" to the chain and now jetty is correctly returning the set message th

Re: Why is the set body not being returned?

2016-09-22 Thread sim085
sform(constant("OK")) .log("THE BODY IS ${body}") .removeHeaders("*"); [/code] I saw the code of the "transform" method and I saw how this seems to make a copy of the old message and then update the body. This is why I tried to clear the headers.

Why is the set body not being returned?

2016-09-21 Thread sim085
"OK" in both browser and console. So why does setBody work when e.getOut().setBody(...) is used but not if this is used without the processor? <http://camel.465427.n5.nabble.com/file/n5787905/screenshot.png> -- View this message in context: http://camel.465427.n5.nabble.com/Why-is-the-set-body-not-being-returned-tp5787905.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Why is the set body not being returned?

2016-09-21 Thread souciance
} > }) > // .setBody(constant("OK")) // LINE 1 > .log("THE BODY IS ${body}"); > [/code] > > The above without LINE 1 remarked returns "HELLO" in both browser and > console and with LINE 1 not remarked it returns "OK" in both