This content has been marked as final.
Show 4 replies
-
1. Re: Message headers between routs
njiang Aug 9, 2012 10:32 PM (in response to gmdavidson62)The exchange property will be copied by default, but camel processor can overwrite the message header at any minutes. If you want to store something in the exchange scope time, you need to store it into the exchange property.
Willem
-
2. Re: Message headers between routs
gmdavidson62 Aug 10, 2012 10:41 AM (in response to njiang)Thank you, that is what I thought.
So just to confirm, if I set a message header or exchange property in route 1, then inside that route 1 call route 2, and route 2 changes the value of the header/property....when it comes back to route 1, the value will be what route 2 set it to be.
Psuedo code:
-
3. Re: Message headers between routs
njiang Aug 12, 2012 8:48 PM (in response to gmdavidson62)It depends how the out message is set in your route2. In most case the out message is just copying the header of in message, so you should get "route 2 header" in this case.
Willem
-
4. Re: Message headers between routs
gmdavidson62 Aug 17, 2012 4:31 PM (in response to njiang)Thank you, makes sens