what's the dynamicRouter slip look like?
stream caching should work, can you show us how do you setup it?


--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Friday, March 15, 2013 at 7:54 AM, ramrubio wrote:

> 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 
> (http://Nabble.com).



Reply via email to