Hi,

im playing around with the jetty component and encountered the problem that
the message body
is lost after reading.

My test processor class is:

private static final class TestProcessor implements Processor {
    public void process(Exchange e) throws Exception {
        Message out = e.getOut();
        out.copyFrom(e.getIn());

        System.out.println("Process body = " +
e.getIn().getBody(String.class));
    }
}

And i add the following route to the CamelContext:

context.addRoutes(new RouteBuilder() {

    public void configure() throws Exception {
        TestProcessor testProcessor = new TestProcessor();

        from("jetty:http://localhost:8080/testservice";)
        .process(testProcessor)
        .process(testProcessor);
    }
}

Is use curl for simple HTTP Posting: curl -d"HelloWorld"
http://localhost:8080/testservice
and the console output is:

Process body = HelloWorld
Process body = 


but why it is not:
Process body = HelloWorld
Process body = HelloWorld

-- 
View this message in context: 
http://www.nabble.com/Body-lost-with-Jetty-component-tp24091800p24091800.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to