Universal Messaging 9.12 | Developer Guide | Enterprise APIs | Enterprise Developer's Guide for C++ | Code Examples for C++ | Publish / Subscribe using Channel Topics | C++ Client: Synchronous Named Channel Consumer
 
C++ Client: Synchronous Named Channel Consumer
This example shows how to synchronously consume events from a Universal Messaging Channel using a named object and a channel iterator.
Usage

namedchanneliterator <rname> <channel name> [name] [start eid] [debug] [count]
[clusterwide] [persistent] [selector]


<Required Arguments>


<rname> - the custom URL to access the realm. Example: nhp://localhost:9000

<channel name> - Channel name parameter for the channel to subscribe to


[Optional Arguments]


[name] - specifies the unique name to be used for a named subscription

[start eid] - The Event ID to start subscribing from

[debug] - The level of output from each event,
0 - none, 1 - summary, 2 - EIDs, 3 - All

[count] - The number of events to wait before printing out summary information

[clusterwide] - specifies whether the named object is to be used across a cluster
(default : false)

[persistent] - specifies whether the named object state is to be stored on disk or
held in server memory (default : false)

[selector] - The event filter string to use
Application Source Code
Click here for a code example

Copyright © 2013-2019 | 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.