Reputation: 328
I understand that I can consume messages from a Solace Durable Queue using either JCSMP or JMS API. I wonder whether I can consume messages from a Solace Durable Queue using MQTT. I tried but I never get it work. My MQTT client tried to subscribe to Durable Queue name but messages in the queue were not delivered to my MQTT Client.
My scenario is the following: Clients from the Internet publish messages to some topics in Solace using MQTT while I have some Durable Queues subscribing to these topics to "attract" messages published to these MQTT topics so that I can process them later. I would like to standardize message exchanges to use only MQTT. Therefore, I would like use MQTT to consume messages stored in this Durable Queues too. Any advice how I can do that.
Thank you.
Upvotes: 0
Views: 765
Reputation: 1733
The MQTT protocol does not have the concept of queues.
For your use case, your MQTT clients will need to create a durable session, with QoS 1 subscriptions.
This will cause the Solace Appliance/VMR to create an internal durable queue that will spool messages for the client.
Upvotes: 1