Universal Messaging 9.8 | Universal Messaging Developer Guide | Web Client APIs | Web Developer's Guide for Adobe Flex | Publish / Subscribe using Channels / Topics | Named Objects
 
Named Objects
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 named object on a channel and even when your application is stopped, the next time you start your application, you will only consume available events from the last event id that the server stored as successfully consumed by that named object.
Named objects can be persistent, i.e. the last eid is written to disk, so that if the Universal Messaging Realm Server is restarted, the last eid consumed is retrievable for each named object on a channel.
An example of how to create a named object that begins from event id 0, and is persistent is shown below:

var nobj:nNamedObject = myChannel.createNamedObject(namedObjectCreatedCB,
"unique1", Long.ZERO, true);

Copyright © 2013-2015 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.