You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by mgiammarco <mg...@gmail.com> on 2012/06/09 15:20:33 UTC

Disable failover transport

Hello,
I have in one server two activemq brokers. One at port 61616, the other at
port 62616 (test and prod). Unfortunately when I connect to 62616 its
failover transport (never asked to have it) connects to port 61616 and send
a message to first broker. Obviously I do not want this behaviour.

How can I disable it?

Thanks,
Mario

--
View this message in context: http://activemq.2283324.n4.nabble.com/Disable-failover-transport-tp4653134.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Disable failover transport

Posted by mgiammarco <mg...@gmail.com>.
Here is the server config:

<broker:broker useJmx="true" persistent="false"
		brokerName="prato">

		<broker:sslContext>
			<broker:sslContext   keyStore="classpath:keystore.jks"   
				keyStorePassword="xxxxxxxxxx" />
		</broker:sslContext>
		<broker:transportConnectors>
			<broker:transportConnector name="vm"
				uri="vm://prato" />
			<broker:transportConnector name="tcp"
				uri="tcp://0.0.0.0:${openwire}" />
			<broker:transportConnector name="stomp"
				uri="stomp://0.0.0.0:${stomp}?Trace=true" />
			<broker:transportConnector name="stompssl"
				uri="stomp+ssl://0.0.0.0:${stompssl}?transport.enabledCipherSuites=..."
/>
		</broker:transportConnectors>
	</broker:broker>

Two tomcat, in the test stomp=61613, openwire=61616; production stomp=62613,
openwire=62616

The client uses stomp protocol so has no config file. But when client
connects to 62613 it does not work: the broker with 62613 starts a failover
connection to 61616. Why?

Thanks again,
Mario

--
View this message in context: http://activemq.2283324.n4.nabble.com/Disable-failover-transport-tp4653134p4653183.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Disable failover transport

Posted by mickhayes <mi...@gmail.com>.
I am assuming port 61616 is for test, and 62616 is for production, is that
right?

Can you show us the URI used by the client for connection to the broker?

There should be no mention of the test port 61616 in the client URI at
production run-time.

-----
Michael Hayes B.Sc. (NUI), M.Sc. (DCU), SCSA SCNA 

--
View this message in context: http://activemq.2283324.n4.nabble.com/Disable-failover-transport-tp4653134p4653153.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.