🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
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