Text message encoding issues when sending to ActiveMQ using JmsTemplate… here is a solution to the problem.
Text message encoding issues when sending to ActiveMQ using JmsTemplate
When I send an SMS containing Russian characters to ActiveMQ, I receive abracadabra. I use org.springframework.jms.core.JmsTemplate,jmsTemplate.convertAndSend. How to specify UTF-8 encoding. Is there a problem with the properties of the JmsTemplate bean, or with ActiveMq?
Solution
by converting to TextMessage and using jmsTemplate.send(destination, s -> s.createTextMessage(textMsg)); Solved the problem