Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F350610AE0 for ; Thu, 6 Jun 2013 12:00:12 +0000 (UTC) Received: (qmail 98393 invoked by uid 500); 6 Jun 2013 12:00:12 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 98145 invoked by uid 500); 6 Jun 2013 12:00:11 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 98137 invoked by uid 99); 6 Jun 2013 12:00:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jun 2013 12:00:10 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: encountered temporary error during SPF processing of domain of ziplies@gmail.com) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jun 2013 12:00:04 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UkYqI-000632-SJ for users@activemq.apache.org; Thu, 06 Jun 2013 04:58:58 -0700 Date: Thu, 6 Jun 2013 04:58:43 -0700 (PDT) From: INsanityDesign To: users@activemq.apache.org Message-ID: <1370519923836-4667953.post@n4.nabble.com> Subject: ActiveMQ Cluster - failover: connect times out/hangs, tcp: works MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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 http://activemq.apache.org/networks-of-brokers.html#NetworksofBrokers-Purestaticnetworks 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:///xx.xx.x.xxx:61616@1750(localhost) has been established. Now, I want to connect from the client to the for me primary as mentioned here http://activemq.apache.org/failover-transport-reference.html#FailoverTransportReference-BrokersideOptionsforFailover. The problem that occurs now is that the connection just times out. I have the basic tutorial code and just try: ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(url); Connection connection = connectionFactory.createConnection(); connection.start(); The url is "failover:(tcp://xx.xx.x.xxx:61616)". If I do so it just hangs. If I just connect by url="tcp://xx.xx.x.xxx:61616" 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: http://activemq.2283324.n4.nabble.com/ActiveMQ-Cluster-failover-connect-times-out-hangs-tcp-works-tp4667953.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.