Sets a time limit in seconds on reconnection attempts.

Note: The JMS providers other than SonicMQ do not support this method.

Syntax

PROCEDURE setFaultTolerantReconnectTimeout.
DEFINE INPUT PARAMETER seconds AS INTEGER.

Applies to

Session objects (ClientConnect and ServerConnect only).

Notes

  • Only applicable for Fault Tolerant connections.
  • The default is 60 seconds. A timeout value of 0 indicates no timeout (that is, the reconnect will be attempted indefinitely).
  • This procedure must be called before beginSession procedure is called.
  • The URLs specified in setConnectionURLs procedure are used to attempt reconnection to a SonicMQ Broker.

See also

setFaultTolerant procedure, getFaultTolerant function, isFaultTolerant function, createChangeStateConsumer procedure, #rfi1387308627111, getFaultTolerantReconnectTimeout function, setInitialConnectionTimeout procedure, getInitialConnectionTimeout function, setClientTransactionBufferSize procedure, getClientTransactionBufferSize function

For more information, see the Fault tolerance and the Fault tolerance.