Hi Why do you use those inlined processors to send a copy of an exchange? Can't you just copy the exchange?
newExchange = template.send("direct:...", exchange.copy()); On Wed, Feb 13, 2013 at 3:53 PM, Marek Pszczolka <mpszczo...@gmail.com> wrote: > Thanks for quick response. > > We had something like this and it worked correctly: > > newExchange = template.send("direct:...", new > Processor() { > public void process(Exchange ex) throws > Exception { > ex.copyFrom(exchange); > } > }); > > Now, because of copyFrom() is removed, I wanted to use this code but it > didn't work as expected: > > newExchange = template.send("direct:...", new > Processor() { > public void process(Exchange ex) throws > Exception { > ExchangeHelper.copyResults(ex, exchange); > } > }); > > Am I using something incorrectly? > > With ex.setPattern(ExchangePattern.InOut); my routes work as expected. > > Thanks, > Marek > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/ExchangeHelper-copyResults-doesn-t-copy-exchange-pattern-tp5727506p5727514.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen