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:ff...@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com









Reply via email to