Try PubSub+
If you haven't already, check out our new Developer Portal! You'll find useful information about Solace PubSub+ as well as handy resources to get you started.

Durable topic subscription

rdesojurdesoju Member Posts: 27
edited January 15 in PubSub+ Software

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

Best Answer

Answers

  • AaronAaron Member, Moderator, Employee Posts: 34 Solace Employee

    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.

  • rdesojurdesoju Member Posts: 27

    Thank you @Aaron, I was able to figure out the way to add a durable subscription to a durable topic.

  • rdesojurdesoju Member Posts: 27

    JCSMPFactory.onlyInstance().createDurableTopicEndpointEx(); solved my problem.

Sign In or Register to comment.