I have some issues with the network of brokers configuration I keep getting a
failure to connect.

The setup for the network of brokers is as follows:

Broker1 Master/Slave
        Node 1 (Master)
        Node 2 (Slave)
        
Broker 2 Master/Slave
        Node 1 (Master)
        Node 2 (Slave)
        
Both clusters work fine.        
                
The activemq.xml broker setup:

Broker1:

                <networkConnectors>
                        <networkConnector 
                                name="broker1->broker2" 
                        
uri="static:(failover:(tcp://192.168.10.5:61616,tcp://192.168.10.6:61616)?randomize=false)"
 
                                userName="xxxxx" 
                                password="xxxxx"
                                duplex="true" 
                                networkTTL="3" 
                                dynamicOnly="true"
                                /> 

Broker2:

                <networkConnectors>
                        <networkConnector 
                                name="broker2->broker1" 
                        
uri="static:(failover:(tcp://192.168.10.3:61616,tcp://192.168.10.4:61616)?randomize=false)"
 
                                userName="xxxxx" 
                                password="xxxxx"
                                duplex="true"                           
                                networkTTL="3" 
                                dynamicOnly="true"
                                />
                </networkConnectors>
                
Section of the activeMQ log:

2016-08-17 13:25:58,599 | DEBUG | Attempting 2th connect to:
tcp://192.168.10.4:61616 |
org.apache.activemq.transport.failover.FailoverTransport | ActiveMQ Failover
Worker: 236039765
2016-08-17 13:25:59,616 | DEBUG | Connect fail to: tcp://192.168.10.4:61616,
reason: java.net.ConnectException: Connection refused: connect |
org.apache.activemq.transport.failover.FailoverTransport | ActiveMQ Failover
Worker: 236039765
2016-08-17 13:25:59,616 | DEBUG | Stopping transport
tcp://192.168.10.4:61616 | org.apache.activemq.transport.tcp.TcpTransport |
ActiveMQ Failover Worker: 236039765
2016-08-17 13:25:59,616 | DEBUG | Initialized TaskRunnerFactory[ActiveMQ
Task] using ExecutorService: null |
org.apache.activemq.thread.TaskRunnerFactory | ActiveMQ Failover Worker:
236039765
2016-08-17 13:25:59,616 | DEBUG | Closed socket Socket[unconnected] |
org.apache.activemq.transport.tcp.TcpTransport | ActiveMQ Task-1
2016-08-17 13:25:59,616 | DEBUG | Waiting 40 ms before attempting connection
| org.apache.activemq.transport.failover.FailoverTransport | ActiveMQ
Failover Worker: 236039765

Thanks for the help

Mike



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Network-of-brokers-setup-error-tp4715603.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to