...
The connection url defines the values that are common across the cluster of brokers. The virtual host is second in the list as the AMQP specification demands that it start with a '/' otherwise it be more readable to be swapped with clientid. There is currently only one required option and that is the brokerlist option. In addition the following options are recognised.
Option | Default | Description |
---|---|---|
ssl | false | Set the default for all connections. This can be overridden by the individual broker url. |
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. |
...
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'&cyclecount='20' amqp://guest:guest@client/test?ssl='true'&brokerlist='tcp://localhost;tcp://redundant-server:5673?ssl='falsetrue''&failover='roundrobin' |