[ https://issues.apache.org/jira/browse/CAMEL-4540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128110#comment-13128110 ]
Preben Asmussen commented on CAMEL-4540: ---------------------------------------- Year I know this case is unusual. We have a hub and spokes design integrating different systems. One component is responsible for taking events/messages from system A -> put it on the hub (jms queue/topic), and one outbound component is responsible for picking up from the hub queue -> sending to system B,C ... In this case the outbound component receives a textmessage on the hub and just have to send a bytemessage to the receiving system B's bytemessage queue without doing any routing. > Unable to convert jms textmessage to bytemessage > ------------------------------------------------ > > Key: CAMEL-4540 > URL: https://issues.apache.org/jira/browse/CAMEL-4540 > Project: Camel > Issue Type: Bug > Components: camel-jms > Affects Versions: 2.8.1 > Environment: Linux, Windowns > Reporter: Preben Asmussen > Attachments: jmsbug.zip > > > When receiving a jms textmessage and just forward it to a another queue as a > jms bytemessage the original textmessage is sendt without being converted to > a jms bytemessage. > JmsBinding.makeJmsMessage seems to use the exchange headers to determine of a > new jms message should be created or the original send. > Exchange headers seems to be populated if you do routing or set a dummy > header. > See > http://camel.465427.n5.nabble.com/Convert-jms-message-from-textmessage-to-bytemessage-tc4895362.html > /preben -- 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