activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sandy <this.6...@gmail.com>
Subject Unable to re-establish network connection
Date Fri, 20 Jul 2012 07:48:49 GMT
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 

<networkConnectors>
	 <networkConnector name="local_station2_to_server"
	 
uri="static:(failover:(tcp://master,tcp://slave)?randomize=false&maxReconnectAttempts=0)?useExponentialBackOff=false&maxReconnectDelay=9000000"

	  staticBridge="true"
	       <staticallyIncludedDestinations>
			      <topic physicalName="TEST.SEND.TOPIC"/>
		</staticallyIncludedDestinations>
	  </networkConnector>
	</networkConnectors>

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.

Mime
View raw message