I am setting up four ActiveMQ brokers on two separate machines.

Master A Machine 1
Slave B on Machine 1

Slave A on Machine 2
Master B on Machine 2

Master C Machine 1
Slave D on Machine 1

Slave C on Machine 2
Master D on Machine 2

All of the brokers are running and there are no issues.

The networkConnectors sections is configured the following way:

<networkConnectors>
   <networkConnector
      name=MyName
      duplex="true"
      networkTTL="50"
      decreaseNetworkConsumerPriority="true"
      dynamicOnly="true"
      userName=MyUser
      password=MyPassword
      
uri="masterslave:(nio+ssl://host1:1111,nio+ssl://host2:1111,nio+ssl://host1:2222,nio+ssl://host2:2222,nio+ssl://host3:1111,nio+ssl://host4:1111,nio+ssl://host3:2222,nio+ssl://host4:2222)"

WHen the brokers are started I believe it sets the first connection as the 
master and the remaining thinking they are slaves instead of doing a 
master-slave between two hosts and then doing a network of brokers.  When I 
look in may network connections I only see one instance as being available.

I am not sure if this is a bug or an enhancements is needed in order to 
performed a master slave with a network of brokers.

Is it possible to do something similar to the following:

uri="static:((masterslave:(nio+ssl://host1:1111,nio+ssl://host2:1111),masterslave:(nio+ssl://host1:2222,nio+ssl://host2:2222),(masterslave:(nio+ssl://host3:1111,nio+ssl://host4:1111),(masterslave:(nio+ssl://host3:2222,nio+ssl://host4:2222)"

This would allow for a static network of brokers and provide master-slave 
options for those brokers.

If this is already possible what option/setting am I missing.

Jason

Reply via email to