Hi See this FAQ http://camel.apache.org/why-is-my-message-body-empty.html
Or the body is empty because you would need to do a HTTP POST etc to include a http body. If you just do a HTTP GET then the body is null as expected. On Mon, Jul 28, 2014 at 5:21 AM, Jaishankar <[email protected]> wrote: > Hi Claus... Thank you for replying me. > I tried this way but here the exchange is empty.. > > from("servlet:///hello?servletName=TestServlet").log("log: > ${body}").process(new Processor() { > public void process(Exchange exchange) throws > Exception { > String data = > exchange.getIn().getBody(String.class); > LOG.info("log data message " + data); > > } > } > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Exchange-Body-is-null-while-using-processor-tp5754445p5754481.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/
