Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected cyclecount option location to reflect the code.

...

Option

Default

Description

brokerlist

see below

The list of brokers to use for this connection

failover

see below

The type of failover method to use with the broker list.

cyclecount

0

The number of times to loop through the list of available brokers before failure.

Brokerlist option

No Format
brokerlist='<broker url>[;<broker url>]'

...

The current defaults are naturally to use the 'singlebroker' when only one broker is present and the 'roundrobin' method with multiple brokers. The '''method''' value in the URL may also be any valid class on the classpath that implements the FailoverMethod interface.

Options

Option

Default

Description

cyclecount

0

The number of times to loop through the list of available brokers before failure.

Sample URLs

No Format
amqp:///test?brokerlist='localhost'
amqp:///test?brokerlist='tcp://anotherhost:5684?retries='10''
amqp://guest:guest@/test?brokerlist='vm://:1;vm://:2'&failover='roundrobin'
amqp://guest:guest@/test?brokerlist='vm://:1;vm://:2'&failover='roundrobin?cyclecount='20''
amqp://guest:guest@client/test?brokerlist='tcp://localhost;tcp://redundant-server:5673?ssl='true''&failover='roundrobin'