Problems with configuring clustered brokers.
I have problems configuring broker clusters using configuration file. I
complains about not being able to instantiate clustering and changes over to
stand alone mode.
Scenario -
Two brokers with two different ports 5000 and 6000 are being configured for
clustering with 5000 being the master broker.
Configuring brokers via command line arguments works but does not allow for
master broker.
1. Did you create a common configuration file which is accessible by both
brokers?
eg.
http://webserver/jmq/cluster.properties
2. In the common configuration file above, did you set the following
properties?
eg.
jmq.cluster.brokerlist=broker1:5000,broker2:6000
jmq.cluster.masterbroker=broker1:5000
3. Did you modify the jmq.cluster.url property in the config.properties file
(instance configuration file) for both brokers to point to the above common
configuration file?
eg.
jmq.cluster.url=http://webserver/jmq/cluster.properties
Please also refer to Chapter 5: Working with Broker Clusters section in the
Administrator's Guide for more details.
I think the problem is in your cluster.properties configuration file,
specifically the following line -
jmq.cluster.brokerlist=localhost:6000,5000
Can you please change it to -
jmq.cluster.brokerlist=localhost:6000,:5000
and try again? Note that the syntax for the broker address
is -
hostname[:port] | [hostname]:port
so if you just say "5000" it will be interpreted as a hostname...