Universal Messaging 10.3 | Developer Guide | Enterprise APIs | Enterprise Developer's Guide for C++ | Publish / Subscribe using Channel Topics | Durable Subscriptions
 
Durable Subscriptions
Universal Messaging provides the ability for the server to maintain state for the last event that was consumed by a consumer on a channel. By providing a unique name, you can create a durable subscription on a channel and even when your application is stopped, the next time you start your application, you will only consume available events starting from where you left off.
Durable subscriptions can be persistent, i.e. the last event ID is written to disk, so that if the Universal Messaging Realm Server is restarted, the last event ID consumed is retrievable for each durable subscription on a channel.
An example of how to create a durable subscription that begins from event ID 0, and is persistent is shown below:

nNamedObject nobj = myChannel.createNamedObject("unique1", 0, true);