You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by dhyan <dh...@yahoo.com> on 2016/01/29 13:56:48 UTC

Preserving the Exchange headers between Kafka and Active MQ Friday, January 29, 2016 6:25 PM

Hi 
I am writing an application which does the below.

1. Polls for files in a particular Directory
2. CBR segregates them to Kafka Queues.
3. From the Kafka Queue exchanges are routed to Active MQ
4. From the ActiveMq processors are fed for further processing

Initially I was using Active MQ throughout , but was required to migrate to 
Kafka Queues after CBR

After inserting the Kafka Queue the exchange headers are lost .
I have tried using the setproperty but still the property is not saved in
the exchange.

Can you please suggest how to preserve the headers when the exchange is
routed through different queues.

I am here with attaching few lines from the log , i have noticed that the
bread crumb ids are different

Before putting in Kafka Queue
=================================

{breadcrumbId=ID-localhost-localdomain-35807-1453979787799-0-1,
CamelFileAbsolute=true,
CamelFileAbsolutePath=/home/tomcat/bulkuploader/upload/BULK_BARUNBAR_Modified_Array_Test_Sample2.BARUNBAR,
CamelFileContentType=text/plain, CamelFileLastModified=1453979781000,
CamelFileLength=166,
CamelFileName=BULK_BARUNBAR_Modified_Array_Test_Sample2.BARUNBAR,
CamelFileNameConsumed=BULK_BARUNBAR_Modified_Array_Test_Sample2.BARUNBAR,
CamelFileNameOnly=BULK_BARUNBAR_Modified_Array_Test_Sample2.BARUNBAR,
CamelFileParent=/home/tomcat/bulkuploader/upload,
CamelFilePath=/home/tomcat/bulkuploader/upload/BULK_BARUNBAR_Modified_Array_Test_Sample2.BARUNBAR,
CamelFileRelativePath=BULK_BARUNBAR_Modified_Array_Test_Sample2.BARUNBAR}

After Receiving from Kafka Queue
===================================
{breadcrumbId=ID-localhost-localdomain-35807-1453979787799-0-3,
kafka.EXCHANGE_NAME=0, kafka.TOPIC=barunbar_topic}


Regards
Dhyan



--
View this message in context: http://camel.465427.n5.nabble.com/Preserving-the-Exchange-headers-between-Kafka-and-Active-MQ-Friday-January-29-2016-6-25-PM-tp5776974.html
Sent from the Camel - Users mailing list archive at Nabble.com.