Try OpenEdge Now
skip to main content
Messaging and ESB
ABL - JMS API Reference : setInitialConnectionTimeout procedure
 

setInitialConnectionTimeout procedure

Sets a time limit in seconds on the initial Fault tolerant connection attempt to the SonicMQ Broker.
Note: The JMS providers other than SonicMQ do not support this method.

Syntax

PROCEDURE setInitialConnectionTimeout.
DEFINE INPUT PARAMETER seconds AS INTEGER.

Applies to

Message objects

Notes

*Only for Fault Tolerant connections.
*The default is 30 seconds. The timeout value specifies the timeout in seconds. A timeout value of 0 indicates no timeout (that is, the connect will be attempted indefinitely).
*This procedure must be called before beginSessionprocedure is called.
*The URLs specified in setConnectionURLs procedure are used to attempt to connect to a SonicMQ Broker.
*If the time limit is reached without being able to connect, the application calls the Adapter error handler.

See also

setFaultTolerantprocedure, getFaultTolerantfunction, 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.