Re: Best way to discard changes made to Exchange by invoked route

2014-11-14 Thread Camel Guy
Follow up... I discovered that enrich etc. hide property removal but not property modification. So after switching over to properties, which I think is better (with the exception that there is no removeProperties in Spring XML), only split does what I need. ~cg On Tuesday, November 11, 2014, Camel

Re: Best way to discard changes made to Exchange by invoked route

2014-11-11 Thread Camel Guy
Hi Claus, Indeed, after running a test program, I confirmed that enrich and recipientList 'hide' changes made to properties but not to headers. This is not the case, however, for dynamicRouter, which doesn't hide changes made to headers or properties. split works for headers in addition to proper

Re: Best way to discard changes made to Exchange by invoked route

2014-11-11 Thread Claus Ibsen
You can store information as exchange properties and they stick around On Tue, Nov 11, 2014 at 6:00 PM, Camel Guy wrote: > Hi Claus, > > Thank you again for your reply. Unfortunately I did not see anything > in that FAQ that relates to my problem. > > From route A, I am invoking route B (serially

Re: Best way to discard changes made to Exchange by invoked route

2014-11-11 Thread Camel Guy
Hi Claus, Thank you again for your reply. Unfortunately I did not see anything in that FAQ that relates to my problem. >From route A, I am invoking route B (serially) that deletes a header key. I would like the header key to exist for route A afterwards even though route B deleted it. Using a spl

Re: Best way to discard changes made to Exchange by invoked route

2014-11-11 Thread Claus Ibsen
See this FAQ http://camel.apache.org/why-is-my-message-body-empty.html On Tue, Nov 11, 2014 at 8:22 AM, Camel Guy wrote: > 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."

Re: Best way to discard changes made to Exchange by invoked route

2014-11-10 Thread Camel Guy
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 hello On Mon, Nov 10, 2014 at 10:06 PM, Claus

Re: Best way to discard changes made to Exchange by invoked route

2014-11-10 Thread Claus Ibsen
See about the content enricher On Tue, Nov 11, 2014 at 4:21 AM, Camel Guy 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., modificat

Best way to discard changes made to Exchange by invoked route

2014-11-10 Thread Camel Guy
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: