we use Universal Messaging v 9.12 and are about to create a small java application that would read events from a UM realm.
The java application would register a durable subscriber for a channel.
I’ve looked through the API and through the “Universal Messaging Developer Guide” and saw the following methods for doing this:
// First (from the Universal Messaging Developer Guide) channel.addSubscriber(nEventListener, nNamedObject); // Second (suggested by the Java IDE) channel.addSubscriber(nEventListener, nDurable);
I understand how to use the first method: first create a named object using
nChannel.createSharedNamedObject()) and then call the
addSubscriber method with the parameter of type
nNamedObject. But it is marked as deprecated. So I’d like to use the second variant.
Could anybody tell me how to create a
nDurable instance? I could not find any method in
nChannel that would return this type.