activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From coolboy <>
Subject MQTT to JMS conversion results in null message body.
Date Wed, 14 May 2014 12:58:12 GMT
Is there something special to be done to ensure message body from a MQTT
client appears in the JMS message body ?

I am using the mosquitto publish client to publish a simple message to
amq/mqtt/sample topic string on ActiveMQ. As expected, the JMS conversion
happens correctly. I can see amq.mqtt.sample topic string under Topics in
the web console. To see if the message appears successfully at the JMS end,
I started jconsole. (Yes, I tried SoapUI and couple of others; they failed
to work for one or other reason). jconsole does not show any message body
for the said topic string. However, when I send a message to amq.mqtt.sample
topic string from jconsole or web console, I can see them correctly in the
mosquitto subscribe client.

This problem exists even when I publish from mosquitto publish client with
retain flag turned on. For example,

Without retain flag
mosquitto_pub -p port_number -i clientId -t amq/mqtt/sample -l <enter body
from console>

mosquitto_pub -p port_number -i clientId -t amq/mqtt/sample -r -l <enter
body from console>

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message