activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From INsanityDesign <>
Subject ActiveMQ Cluster - failover: connect times out/hangs, tcp: works
Date Thu, 06 Jun 2013 11:58:43 GMT
Hi everyone

I am "playing around" with AMQ and want to set up a small cluster of
brokers. I have two VMs flying around, Ubuntu based, installed AMQ 5.8,
everything fine so far.
I followed basically
and some other sites and forum posts for the configuration of the
networkConnector and transportConnector (updateClusterClients="true"). From
the logs during start it also seems it works:

INFO | Network connection between vm://localhost#10 and
tcp:/// has been established.

Now, I want to connect from the client to the for me primary as mentioned

The problem that occurs now is that the connection just times out. I have
the basic tutorial code and just try:

            ActiveMQConnectionFactory connectionFactory = new
            Connection connection = connectionFactory.createConnection();

The url is "failover:(tcp://". If I do so it just hangs.
If I just connect by url="tcp://" everything is fine and
the messages get posted.

I am a little lost at the moment. I tried many different things. I also
started a local one where I have no issues in using the "failover" protocol.
Therefore, I already thought I have to configure something on the remote
machine, but as the failover is just supposed to be a "virtual client" sort
of protocol I cannot figure out what my current issue is.

Any help is highly appreciated. And if you need more information, just let
me know.

Thanks in advance

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

View raw message