Solace Community is getting a facelift!
On March 3rd we will be starting the process of migrating Solace Community to a new platform. As a result, Solace Community will go in to a temporary read-only state. You will still be able to come onto Solace Community and search through posts to find answers, but you won't be able to ask questions, post comments, or react in any way.
We hope to have the migration complete by Wednesday March 5th (or sooner), so please keep an eye out!
Durable topic subscription
Hi,
In JMS world, we can have a topic and while connecting to the topic we can mention from the subscriber end to be a "durable" or "nondurable" subscriber.
However, on solace side, when I created a topic from CLI by default it provisions a "durable" topic it seems. How can I control subscription type from client side here, i.e. is there a provision to "add durable subscription" or "non-durable subscription" while creating a JCSMP client?
What kind of subscription be added when we use "session.addSubscription()"?
Is there a command to view active subscriptions from CLI?
Thanks,
Raghu
Answers
-
Hey Raghu. In CLI or the PubSub+ Manager, you can only provision Durable Topic Endpoints... those are used when wanting to create a durable subscription in JMS. When the client binds to the endpoint (aka named subscription), it specifies the topic subscription it wants to inject and this gets added to the endpoint.
For non-persistent subscriptions, nothing needs to be configured on the broker. Solace is entirely dynamic in this way. When the API subscribes to a non-persistent topic, the subscription is simply added to the client. If you're using CLI, do
show client * subscriptions
to see all clients and their non-persistent subscriptions. Or if in the PubSub+ Manager, simply double-click on a particular client and navigate to their subscriptions.0