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 EA986DAEE for ; Fri, 20 Jul 2012 07:49:21 +0000 (UTC) Received: (qmail 46610 invoked by uid 500); 20 Jul 2012 07:49:21 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 46226 invoked by uid 500); 20 Jul 2012 07:49:19 -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 46184 invoked by uid 99); 20 Jul 2012 07:49:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2012 07:49:17 +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: neutral (nike.apache.org: 216.139.250.139 is neither permitted nor denied by domain of this.6irl@gmail.com) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2012 07:49:10 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Ss7xB-0006gN-Rl for users@activemq.apache.org; Fri, 20 Jul 2012 00:48:49 -0700 Date: Fri, 20 Jul 2012 00:48:49 -0700 (PDT) From: sandy To: users@activemq.apache.org Message-ID: <1342770529832-4654188.post@n4.nabble.com> Subject: Unable to re-establish network connection MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I have a local broker that must infinitely re-establish connection to a cluster of broker (master/slave) when network is down. What I encounter is that sometimes my local broker can re-establish when network is up but sometimes it just die and stop fwding message. The problem is kind of intermittent. Can somebody help me on how to configure network connector so that It will ALWAYS automatically re-establish the network bridge? I m using activemq 5.6.0 and current configuration is as follow Thanks -- succesfully reestablish 2012-07-20 11:43:17,095 | ERROR | Failed to connect to [tcp://203.127.254.43:61616, tcp://203.127.254.43:61613] after: 1 attempt(s) | org.apache.activemq.transport.failover.FailoverTransport | ActiveMQ Task-12 2012-07-20 11:43:17,095 | WARN | Network connection between vm://local_station_2#336 and unconnected shutdown due to a remote error: java.net.NoRouteToHostException: No route to host: connect | org.apache.activemq.network.DemandForwardingBridgeSupport | ActiveMQ Task-12 2012-07-20 11:43:17,095 | INFO | Connector vm://local_station_2 Stopped | org.apache.activemq.broker.TransportConnector | ActiveMQ Task-4 2012-07-20 11:43:18,095 | INFO | Establishing network connection from vm://local_station_2?async=false&network=true to failover:(tcp://203.127.254.43:61616,tcp://203.127.254.43:61613)?randomize=false&maxReconnectAttempts=0 | org.apache.activemq.network.DiscoveryNetworkConnector | ActiveMQ Task-14 2012-07-20 11:43:18,095 | INFO | Connector vm://local_station_2 Started | org.apache.activemq.broker.TransportConnector | ActiveMQ Task-14 2012-07-20 11:43:18,110 | ERROR | Failed to connect to [tcp://203.127.254.43:61616, tcp://203.127.254.43:61613] after: 1 attempt(s) | org.apache.activemq.transport.failover.FailoverTransport | ActiveMQ Task-4 2012-07-20 11:43:18,110 | WARN | Network connection between vm://local_station_2#338 and unconnected shutdown due to a remote error: java.net.NoRouteToHostException: No route to host: connect | org.apache.activemq.network.DemandForwardingBridgeSupport | ActiveMQ Task-4 2012-07-20 11:43:18,110 | INFO | Connector vm://local_station_2 Stopped | org.apache.activemq.broker.TransportConnector | ActiveMQ Task-8 2012-07-20 11:43:19,110 | INFO | Establishing network connection from vm://local_station_2?async=false&network=true to failover:(tcp://203.127.254.43:61616,tcp://203.127.254.43:61613)?randomize=false&maxReconnectAttempts=0 | org.apache.activemq.network.DiscoveryNetworkConnector | ActiveMQ Task-14 2012-07-20 11:43:19,110 | INFO | Connector vm://local_station_2 Started | org.apache.activemq.broker.TransportConnector | ActiveMQ Task-14 2012-07-20 11:43:19,110 | INFO | Successfully connected to tcp://203.127.254.43:61616 | org.apache.activemq.transport.failover.FailoverTransport | ActiveMQ Task-13 2012-07-20 11:43:19,157 | INFO | Network connection between vm://local_station_2#340 and tcp://203.127.254.43:61616(server_primaryBroker) has been established. | org.apache.activemq.network.DemandForwardingBridgeSupport | StartLocalBridge: localBroker=vm://local_station_2#340 -- with same configuration , nothing changes but it cant reestablish ( "Connection reset, not attempting to automatically reconnect") 2012-07-20 15:18:28,873 | INFO | Network connection between vm://local_station_2#466 and tcp://203.127.254.43:61616(server_primaryBroker) has been established. | org.apache.activemq.network.DemandForwardingBridgeSupport | StartLocalBridge: localBroker=vm://local_station_2#466 2012-07-20 15:19:17,578 | WARN | Transport (tcp://203.127.254.43:61616) failed, reason: java.net.SocketException: Connection reset, not attempting to automatically reconnect | org.apache.activemq.transport.failover.FailoverTransport | ActiveMQ Transport: tcp:///203.127.254.43:61616 2012-07-20 15:19:17,578 | INFO | Network connection between vm://local_station_2#466 and unconnected shutdown due to a local error: java.net.SocketException: Connection reset | org.apache.activemq.network.DemandForwardingBridgeSupport | ActiveMQ Transport: tcp:///203.127.254.43:61616 2012-07-20 15:19:17,593 | INFO | Network connection between vm://local_station_2#466 and unconnected shutdown due to a local error: java.net.SocketException: Connection reset | org.apache.activemq.network.DemandForwardingBridgeSupport | ActiveMQ Transport: tcp:///203.127.254.43:61616 2012-07-20 15:19:17,593 | INFO | Establishing network connection from vm://local_station_2?async=false&network=true to failover:(tcp://203.127.254.43:61616,tcp://203.127.254.43:61613)?randomize=false&maxReconnectAttempts=0 | org.apache.activemq.network.DiscoveryNetworkConnector | ActiveMQ Task-31 2012-07-20 15:19:17,640 | INFO | Connector vm://local_station_2 Started | org.apache.activemq.broker.TransportConnector | ActiveMQ Task-31 2012-07-20 15:19:17,625 | INFO | Connector vm://local_station_2 Stopped | org.apache.activemq.broker.TransportConnector | ActiveMQ Task-30 2012-07-20 15:19:17,640 | INFO | local_station_2 bridge to server_primaryBroker stopped | org.apache.activemq.network.DemandForwardingBridgeSupport | ActiveMQ Task-30 2012-07-20 15:19:17,703 | ERROR | Failed to connect to [tcp://203.127.254.43:61616, tcp://203.127.254.43:61613] after: 1 attempt(s) | org.apache.activemq.transport.failover.FailoverTransport | ActiveMQ Task-28 2012-07-20 15:19:17,718 | WARN | Network connection between vm://local_station_2#468 and unconnected shutdown due to a remote error: java.net.NoRouteToHostException: No route to host: connect | org.apache.activemq.network.DemandForwardingBridgeSupport | ActiveMQ Task-28 2012-07-20 15:19:17,718 | WARN | Network connection between vm://local_station_2#468 and unconnected shutdown due to a remote error: java.net.NoRouteToHostException: No route to host: connect | org.apache.activemq.network.DemandForwardingBridgeSupport | StartRemoteBridge: remoteBroker=unconnected 2012-07-20 15:19:17,718 | INFO | Connector vm://local_station_2 Stopped | org.apache.activemq.broker.TransportConnector | ActiveMQ Task-30 -- View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-re-establish-network-connection-tp4654188.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.