Just as Freeman said, the message header will be override by the components, but the property of the exchange can be copied from one endpoint to another endpoint.

On Wed Nov 30 10:42:49 2011, Freeman Fang wrote:
Hi,

In this case I think you need store the date as properties for exchange but not the headers for the message.
The exchange keep alive during whole InOut conversation.


Freeman
On 2011-11-30, at 上午6:25, Castyn wrote:

I have a route which hits an active MQ point external to my system and
outside of my control. I've tried creating a header before the queue, and then capturing it afterwards but the queue I am hitting (actually another
instance of Servicemix with activeMQ) does not persist it along with the
message and eventually the response. Is there a way for me to persist a
piece of data quickly and easily that I can set before the external queue
component and then retrieve afterwards?

Example of what I am doing:


<setHeader headerName="theCode">
<constant>ABCDE</constant>
</setHeader>
<inOut uri="activemqhcm:queue:JMS/EXT.ESB.REQ"/>
<setBody>
<simple>${headers.theCode}</simple>
</setBody>
<to uri="file:data?fileName=test.xml"/>



--
View this message in context: http://camel.465427.n5.nabble.com/Persistent-Header-tp5033912p5033912.html
Sent from the Camel - Users mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com













--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
        http://jnn.javaeye.com (Chinese)
Twitter: willemjiang Weibo: willemjiang

Reply via email to