You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Neo Wang <wa...@hotmail.com> on 2009/09/10 13:06:38 UTC

How to configure the activemq-ds.xml in a cluster environment?

As we known, in a single AMQ node environment, we can set the value of
"<ServerUrl>" in " <tx-connection-factory>" to a physical IP in
activemq-ds.xml, for example, "<ServerUrl>tcp://10.10.135.212</ServerUrl>".
But for a cluster environment, for example , a broker cluster grouped by 2
nodes of 10.10.135.211 and 10.10.135.212, how to define it in configuration
file?
For client side program, I can use the code like following:
ActiveMQConnectionFactory connectionFactory = new
ActiveMQConnectionFactory(ActiveMQConnection.DEFAULT_USER,ActiveMQConnection.DEFAULT_PASSWORD,
"failover://(tcp://10.10.135.211:61616,tcp://10.10.135.212:61616)");   

But how should I configure it in activemq-ds.xml? Thanks a lot.
			
-- 
View this message in context: http://www.nabble.com/How-to-configure-the-activemq-ds.xml-in-a-cluster-environment--tp25381305p25381305.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.