activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From loic jehanno <loic.jeha...@alcatel-lucent.fr>
Subject network of brokers issues
Date Tue, 20 Mar 2007 13:45:33 GMT

Hello, 
I'm testing activemq and i have some problems with the network of brokers
feature (active MQ release 4.1 snapshot).
I configured a network with two brokers broker_A and broker_B as below.

broker_A:

<beans>
	<broker useJmx="false" name="broker_A"
		xmlns="http://activemq.org/config/1.0" persistent="false">
		<transportConnectors>
			<transportConnector name="tp_A" uri="tcp://localhost:29800" />
		</transportConnectors>
		<networkConnectors>
			<networkConnector name="net_A"
				uri="static://(tcp://localhost:29700)" failover="true" />
		</networkConnectors>
	</broker>
</beans>


broker_B:

<beans>
	<broker useJmx="false" name="broker_B"
		xmlns="http://activemq.org/config/1.0" persistent="false">
		<transportConnectors>
			<transportConnector name="tp_B" uri="tcp://localhost:29700" />
		</transportConnectors>
		<networkConnectors>
			<networkConnector name="net_B"
				uri="static://(tcp://localhost:29800)" failover="true" />
		</networkConnectors>
	</broker>
</beans>


If i start the two brokers, the network link is well mounted.

If i stop the broker_B and restart it, the broker_A shutdown.

I have the same trouble, if the brokers are started on differents machines
and if i wait more than 1 minutes before restarting the broker.


here are my maven dependencies

	<dependencies>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring</artifactId>
			<version>2.0</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.xbean</groupId>
			<artifactId>xbean-spring</artifactId>
			<version>3.0-SNAPSHOT</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.activemq</groupId>
			<artifactId>activemq-core</artifactId>
			<version>4.1-SNAPSHOT</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.8</version>
			<scope>provided</scope>
		</dependency>
	</dependencies>

Has anyone experienced this before, and maybe solved it?

In advance, thanks for your help.


Regards, 

Loic

in attach the logs of broker_A and Broker_B

http://www.nabble.com/file/7290/logbroker_A.txt logbroker_A.txt 
http://www.nabble.com/file/7291/logbroker_B.txt logbroker_B.txt 
-- 
View this message in context: http://www.nabble.com/network-of-brokers-issues-tf3433773s2354.html#a9572727
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message