Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | API Reference | awSet | awSetDescriptorAutomaticReconnect
 
awSetDescriptorAutomaticReconnect
BrokerError awSetDescriptorAutomaticReconnect(
BrokerConnectionDescriptor desc,
BrokerBoolean reconnect);
desc
The Broker descriptor. This parameter is used for output.
reconnect
If set to 1 (true) , the automatic reconnect behavior is enabled for this descriptor. Otherwise, it is disabled.
Enables or disables the automatic reconnection feature for this descriptor, based on the setting of the reconnect parameter.
Note:
You can disable the automatic reconnection feature by explicitly invoking awDisconnectClient or awDestroyClient.
If automatic reconnection is enabled, the Broker client associated with this descriptor will be automatically reconnected if the connection to the Broker is lost.
See Automatic Reconnection for a complete discussion of the automatic reconnect feature.
Possible BrokerError major codes
Meaning
AW_ERROR_INVALID_DESCRIPTOR
The desc parameter is invalid.
See also: