[
https://issues.apache.org/jira/browse/CAMEL-5381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397342#comment-13397342
]
Claus Ibsen commented on CAMEL-5381:
------------------------------------
A workaround is to convert the message to a String prior to setting the header,
eg
.convertBodyTo(String.class)
> Exchange's headers lost after pass through dynamicRouter if the consume from
> activemq
> -------------------------------------------------------------------------------------
>
> Key: CAMEL-5381
> URL: https://issues.apache.org/jira/browse/CAMEL-5381
> Project: Camel
> Issue Type: Bug
> Components: camel-activemq
> Affects Versions: 2.8.5, 2.9.2, 2.10.0
> Reporter: Somchai
> Assignee: Claus Ibsen
> Fix For: 2.8.6, 2.9.3, 2.10.1, 2.11
>
> Attachments: DynamicRoutersWithJMSMessageLostHeadersIssueTest.java
>
>
> Please see the unit test below, if consume from other endpoint such as
> direct, things work properly but does not when consume from activemq
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira