[ https://issues.apache.org/jira/browse/CAMEL-4540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128108#comment-13128108 ]
Claus Ibsen commented on CAMEL-4540: ------------------------------------ What is your use-case as its a really odd to pickup a TextMessage and route it directly as a BytesMessage. > 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