camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Caleb Skidmore <caliskid8...@yahoo.com.INVALID>
Subject Camel Not Sending Objects in Headers to RabbitMQ
Date Wed, 05 Apr 2017 17:00:02 GMT
Hello,

When I set a header as an object and route it to RabbitMQ, the header does not arrive.  For
instance:

List<String> testData = new ArrayList<>();
testData.add("test");
testData.add("data");
exchange.getIn().setHeader("ObjectHeader", testData);
exchange.getIn().setHeader("StringHeader", testData.toString());

When I check the headers in RabbitMQ, the StringHeader is there but the ObjectHeader is missing.
 Any thoughts on what is happening to the ObjectHeader?

Thanks,
C

Mime
View raw message