Sets the method the client application will use to connect to the broker.

Syntax

PROCEDURE setSequential.
DEFINE INPUT PARAMETER seq AS LOGICAL.

Applies to

Session objects

Notes

  • Sonic lets clients try to connect to brokers in a connection list in two ways:
    • Sequentially — Starting with the first broker in the list and working sequentially
    • Randomly — Repeatedly picking a broker randomly
  • The default is TRUE, which tells clients to try to connect sequentially.
  • To attempt load balancing, set seq to FALSE, which tells clients to try to connect randomly.

See also

setConnectionURLs procedure, getConnectionURLs function, #rfi1387308622706, getSequential function

For more information, see the Managing fail-over support.