Are you looking to get queue semantics (competing consumption across multiple consumers) out of this subscription, or topic semantics (every consumer gets every message)?
If the later, then you may be able to directly subscribe to the virtual topic itself, as a regular topic - because it still works as a regular topic. I say _may_ because sometimes ActiveMQ gets configured to prevent flow of the virtual topic itself (generally to avoid problems with duplicating messages in a network-of-brokers). If the need is to get queue semantics, I don't know. Perhaps someone more knowledgeable with MQTT can answer that. Art On Fri, Nov 9, 2018 at 11:19 AM Huan <[email protected]> wrote: > ActiveMQ virtual topic is actually put the message produced by publisher > in a > queue, the message will be distributed to multiple consumers evenly who > connect to the queue. > > my consumer is using MQTT, but there is no queue concept in MQTT, but only > subscribe/publish concept, then how can MQTT client get the virtual topic > in > the queue? > > I tried to subscribe the virtual topic, but I did not get the publish > message. > > > > -- > Sent from: > http://activemq.2283324.n4.nabble.com/ActiveMQ-Dev-f2368404.html >
