Hi Claus,
Thanks for the pointer!
This program logs "INFO hello" followed by an empty INFO message. I
would like the second logged message to also be "INFO hello."
Am I doing something wrong?
Camel 2.14.0
Thank you,
~cg
<route>
<from uri="direct:Test"/>
<setHeader headerName='bar'><constant>hello</constant></setHeader>
<log message="${header.bar}"/>
<enrich uri="direct:Foo"/>
<log message="${header.bar}"/>
</route>
<route>
<from uri="direct:Foo"/>
<removeHeader headerName='bar'/>
</route>
On Mon, Nov 10, 2014 at 10:06 PM, Claus Ibsen <[email protected]> wrote:
> See about the content enricher
>
> On Tue, Nov 11, 2014 at 4:21 AM, Camel Guy <[email protected]> wrote:
>> 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
>