camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Camel Guy <ca...@devguy.com>
Subject Best way to discard changes made to Exchange by invoked route
Date Tue, 11 Nov 2014 03:21:54 GMT
Hello,

I am using Spring XML. I would like to invoke a route synchronously,
passing the current Exchange. However, I want to discard the changes
that the invoked route makes to the Exchange (e.g., modification of
headers).

So far this is the shortest recipe that results in the desired behavior:

<split><constant>1</constant><to uri="direct:Foo"/></split>

Is there a more elegant way to do this?

I tried <recipientList><constant>direct:Foo</constant></recipientList>
but the current Exchange was modified.


Thanks,
~cg

Mime
View raw message