setFaultTolerant procedure
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
setFaultTolerant procedure
Enables or disables Fault Tolerance for the session.
Note: The JMS providers other than SonicMQ do not support this method.
Syntax
|
Applies to
Session objects (ClientConnect and ServerConnect only)
Notes
- Only applicable for Fault Tolerant connections.
- A value of
TRUEwill enable fault-tolerance and a value ofFALSEwill disable it. If default isFALSE, fault-tolerance is not enabled. - This procedure must be called before beginSession procedure is called.
- You cannot change fault-tolerance for an active session. You must stop and restart the session for any changes to have an effect.
- The application must also call setConnectionURLs procedure to provide a list of broker URLs to be connected to when the current connection fails. SonicMQ will connect to the URLs in the order they are listed, starting at the beginning of the list.
- setSequential procedure may be called to connect to the urls in the order they are listed starting at a random place in the list. See the SonicMQ documentation for details.
See also
setFaultTolerant procedure, getFaultTolerant function, isFaultTolerant function, createChangeStateConsumer procedure, setFaultTolerantReconnectTimeout procedure, getFaultTolerantReconnectTimeout function, setInitialConnectionTimeout procedure, getInitialConnectionTimeout function, setClientTransactionBufferSize procedure, getClientTransactionBufferSize function
For more information, see the Fault tolerance and the Fault tolerance.