Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | API Reference | awTx | awTxCanPublish
BrokerError awTxCanPublish(
BrokerTxClient txclient,
char event_type_name,
BrokerBoolean can_publish);
The Broker client whose ability to publish is to be tested.
The event type name that the Broker client wishes to publish.
A indication of whether or not the Broker client is permitted to publish the specified event type. Set to 1 (true) if the Broker client is permitted; otherwise, set to 0 (false). This parameter is used for output.
Test if you can transactionally publish or deliver an event of a given type. Determines whether or not the specified Broker client can transactionally publish or deliver the specified event type. Upon return, the can_publish parameter is set to 1 (true) or0 (false). If set to 1 (true), the Broker client can publish or deliver events of this event type. Conversely, if set to 0 (false), the Broker client cannot publish or deliver such events.
Possible BrokerError major codes
The transactional client is not valid.
The event_type_name or can_publish are NULL.
The event type does not exist on the Broker.