Message TranslatorCamel supports the Message Translator Using the Fluent Builders from("direct:start").setBody(body().append(" World!")).to("mock:result"); or you can add your own Processor from("direct:start").process(new Processor() { public void process(Exchange exchange) { Message in = exchange.getIn(); in.setBody(in.getBody(String.class) + " World!"); } }).to("mock:result"); For further examples of this pattern in use you could look at one of the JUnit tests Using This PatternIf you would like to use this EIP Pattern then please read the Getting Started, you may also find the Architecture useful particularly the description of Endpoint and URIs. Then you could try out some of the Examples first before trying this pattern out. |