Entering content frame

This graphic is explained in the accompanying text Managing Durable Subscriptions Locate the document in its SAP Library structure

Use

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.

This graphic is explained in the accompanying text

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

Procedure

...

       1.      Create a durable subscription:

This graphic is explained in the accompanying text

...

Topic topic;

String subscription_name = “my_sub”;

...

TopicSubscriber topicSubscriber = topicSession.createDurableSubscriber(topic, subscription_name);

       2.      Stop the durable subscription:

This graphic is explained in the accompanying text

topicSubscriber.close();

       3.      Delete the durable subscription. Unsubscribe the subscription name:

This graphic is explained in the accompanying text

topicSession.unsubscribe(subscription_name);

 

 

Leaving content frame