Universal Messaging 10.11 | Developer Guide | Enterprise APIs | Enterprise Developer's Guide for C++ | Code Examples for C++ | Publish / Subscribe using Channel Topics | C++ Client: Transactional Channel Publisher
 
C++ Client: Transactional Channel Publisher
This example publishes events transactionally to a Universal Messaging Channel. A Universal Messaging transaction can contain one or more events. The events which make up the transaction are only made available by the Universal Messaging server if the entire transaction has been commited succesfully.
Usage
txpublish <rname> <channel name> [count] [size] [tx size]


<Required Arguments>


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

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


[Optional Arguments]


[count] -The number of events to publish (default: 10)

[size] - The size (bytes) of the event to publish (default: 100)

[tx size] - The number of events per transaction (default: 1)
Application Source Code
Click here for a code example