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.

Reply via email to