Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | API Reference | awMake | awMakeUniqueTxSubId
 
awMakeUniqueTxSubId
BrokerError awMakeUniqueTxSubId(
BrokerTxClient txclient,
int *sub_id);
txclient
The Broker client for whom the subscription ID is to be created.
sub_id
The subscription ID. This parameter is used for output.
Creates a subscription ID for the specified txclient and returns it in the output parameter sub_id. This function queries the Broker for the client's open subscriptions and excludes any subscription IDs that are already in use. Use this function for clients that may have subscriptions that are open from a previous session.
After initially calling awMakeUniqueTxSubId, subsequent calls to awMakeTxSubId will return unique subscription IDs.
Possible BrokerError major codes
Meaning
AW_ERROR_INVALID_CLIENT
The txclient has been destroyed or disconnected.
AW_ERROR_NULL_PARAM
The sub_id parameter is NULL.
See also: