I have a setup where a queue in RabbitMQ shovels the data to a queue in ActiveMQ Clasic 6.0.1 over AMQP (1.0).
When posting the following data (JSON) from RabbitMQ
{"hello": "world"}
I am receiving the below on ActiveMQ Classic web console. I go to the queue, and see list of message, and view the message. The details appear in the message details area:
Sr�Ss�
@@@@@@@@@@@@@St�/�exchange��routing_key�RMQ� src-queue�RMQSu�{"hello": "world"}
Is there a way I can only have the JSON only? Is there a particular setting, or is this something pretty standard for payload over AMQP?
The ActiveMQ web console is showing the AMQP message contained within the native ActiveMQ Openwire message instance. This occurs usually because the broker AMQP transformer is set to Native or Raw as opposed the JMS which would fully convert the AMQP message into an ActiveMQ native Message (this can cause unexpected alterations in the message though).
The web console is giving you the full truth of what the Message contents are and can't be altered to somehow know what an AMQP message body looks like vs any other message body so this is what you should expect to see.