activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From activeMqUser <>
Subject Failover problem
Date Mon, 13 Sep 2010 11:56:05 GMT


i am facing a problem while implementing FailOver in activeMQ.
I have 3 Brokers. Where i have made one Network by enabling  

      <networkConnector name="Network-Broker" 

and other two are stand alone.

My Network broker is running on 5009 port. I started all the Brokers one by
one(first 5001 then 5002 and then 5009). So as expected the Network Broker
which is running on 5009 is successfully connected to the Broker running on
5001 as i can confirm from the below stack.

 INFO | Establishing network connection from vm://amq3 to
 INFO | Connector vm://amq3 Started
 INFO | Successfully connected to tcp://localhost:5001
 INFO | Network Connector Network-Broker Started

I am starting My Application which will create One producer and consumer by
connecting to the Network Broker which is running on 5009 port.
My requirement is when i stop the Network Broker to which my Application is
connected on 5009 it should try to connect to either Broker on 5001 or 5002
and my Application should not fail. Currently what is happening is, my
Application is trying to connect to the Broker reconnect to 5009 port which
is not available , so it is keep on trying. Is it possible that as i have a
Network of Broker(5009 , 5001 , 5002) My application will reconnect to
either 5001 or 5002 ?

I am not sure if "what i am looking for is supported or not". If i have
understood the concept of FailOver then please correct me.

But this is my requirement. If you can suggest a better approach i will be
more happy to see that. 

Thanks in advance
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message