Library to Unsubscribe Topic from Queue
Hi Community,
I am exploring Solace and its Use Cases.
Using Solace Java API Library we can create a Queue and subscribe a Topic to the Queue.
Using SEMP Java Client Library we can Create and Delete a Queue.
Using SEMP REST API we can create and delete Queue , subscribe a Topic to Queue and can also unsubscribe a Topic from Queue.
I am trying to find a Library (in Java or any language) , using which we can unsubscribe a Topic from Queue. Is there any Library to unsubscribe Topic from Queue ?
Thanks,
Triptesh
Answers
-
Hey @triptesh ! To answer your first question, take a look at this community post to get an idea on how queues and subscriptions are handled in the new Solace PubSub+ Messaging APIs (Java, Python, Go) https://solace.community/discussion/1195/persistent-receiver-with-subscription-specific-listeners#latest
To get a better idea on using SEMP (whether its the Java client Library of REST API) you can take a look at our tutorials site https://tutorials.solace.dev/semp. In a nutshell, yes it is possible to create and delete a queue using the SEMP java client similar to how you are able to use the SEMP REST API.
Regarding the deletion of subscription from a queue, that can also be achieved using SEMP. The Solace SEMP documentation https://docs.solace.com/API-Developer-Online-Ref-Documentation/swagger-ui/config/index.html#/queue
DELETE /msgVpns/{msgVpnName}/queues/{queueName}/subscriptions/{subscriptionTopic}
Hopefully this was helpful!
0