!--a11y-->
Managing Durable Subscriptions 
When the message producer is no longer active, messages that were sent can be lost. If you create a durable subscriber, the message will not be lost in such a case.

Using durable subscriptions may lead to higher overheads. A durable subscription can have only one active subscriber at a time.
...
1. Create a durable subscription:

... Topic topic; String subscription_name = “my_sub”; ... TopicSubscriber topicSubscriber = topicSession.createDurableSubscriber(topic, subscription_name); |
2. Stop the durable subscription:

topicSubscriber.close(); |
3. Delete the durable subscription. Unsubscribe the subscription name:

topicSession.unsubscribe(subscription_name); |
