Found answer to my question in documentation.  Missed it.

servlet component may only read stream once.

Tried using streamcaching but that did not work.  Do not know why.

Instead copied body to string and reset it in request and that worked.  Here
is code in case someone runs into same issue.

this.from("servlet:///?matchOnUriPrefix=true")
                .process(processor)
                .removeHeader(Exchange.HTTP_PATH)
                .dynamicRouter(method(CamelRoute.class, "slip"));

And in processor do the following:
public void process(Exchange exchange) throws Exception 
                {
                String string = exchange.getIn().getBody(String.class);
                exchange.getIn().setBody(string);
                }




--
View this message in context: 
http://camel.465427.n5.nabble.com/Post-Request-forwarded-from-Camel-does-not-contain-HTTP-Body-tp5729145p5729211.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to