Broker 10.15 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | Transaction Semantics | Using Transaction Processing | Subscribing and Getting Events | Creating a Subscribing Client
 
Creating a Subscribing Client
Your application may create a client that will subscribe to events transactionally. Clients are created by calling the awNewBrokerTxClient function. The following example contains an excerpt that shows the use of the awNewBrokerTxClient function in creating a subscribing client:
. . .
err = awNewBrokerTxClient(broker_host,broker_name,"Client
sub","default", "TransactionTest2",NULL,&txclient2);
if (!verifyNoError(__FILE__,"awNewBrokerTxClient",__LINE__,err)) {
return 0;
}

test
printf("Created broker transactional client to subscribe events.\n");
. . .