Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | API Reference | awTx | awTxPublishEvent
 
awTxPublishEvent
BrokerError awTxPublishEvent(
BrokerTxClient txclient,
BrokerEvent event);
txclient
The Broker client to transactionally publish the event.
event
The event to be published.
Transactionally publishes the specified event. The event is sent to the Broker then is given to all subscribing clients.
Note:
This function can fail if the Broker client does not have permission to publish the event type, based on its client group, or if the event is not properly formed. See awTxCanPublish for more information.
Possible BrokerError major codes
Meaning
AW_ERROR_INVALID_CLIENT
The txclient is not valid.
AW_ERROR_INVALID_EVENT
The event is not valid or the event does not match its type definition.
AW_ERROR_NO_PERMISSION
The txclient does not have permission to publish the event type.
AW_ERROR_UNKNOWN_EVENT_TYPE
The event type does not exist on the Broker.