We are trying to subscrib a topic named message/abc.com/broadcast
by a MQTT client MQTT.fx on the ActiveMQ 5.15.8. However, the ActiveMQ console shows the subscribed topic is message.abc/com.broadcast
.
We see the MQTT slash seperator will be converted to the dot in the ActiveMQ. But why does the ActiveMQ convert the dot to the slash as well? We would like to have a topic is message.abc.com.broadcast
for the subscription and publication.
We have tried the destinationPathSeparatorPlugin of the ActiveMQ as below.
<plugins>
<destinationPathSeparatorPlugin pathSeparator="/" />
</plugins>
After enabling this plugin, the subscription of message/abc.com/broadcast
will become message.abc.com.broadcast
as shown on the ActiveMQ console. But, when we published a message to the message/abc.com/broadcast,
the subscriptor will not receive any message. From the console, we can see the consumer is there(1 consumer) and the message has been enqueued and dequeued.
How can we make the dot/period be used in the topic name of ActiveMQ by MQTT?
Thanks