Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | Transactional Client Processing with Adapters | Using Transaction Processing | Obtaining a Transaction ID
 
Obtaining a Transaction ID
Use the awMakeTxTransactionId to obtain a unique transaction identifier for your Broker client. You must set the transactionId envelope field for each event that you want to publish as part of the transaction.
The following example illustrates how to invoke the awMakeTxTransactionId function
BrokerClient c;
BrokerError err;
char** transId;
. . .
// Obtain a transaction id.
err = awMakeTransactionId( c, transId);
if (err != AW_NO_ERROR) {
printf("Error creating transaction ID\n%s\n",
awErrorToString(err));
return 0;
}
. . .