activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Strachan <james.strac...@gmail.com>
Subject Re: Failover configuration for JMS clients using JNDI
Date Wed, 04 Mar 2009 15:32:10 GMT
2009/3/4 A. Gregory Rabil <greg.rabil@ins.com>:
>
> Hello,
> I'm using ActiveMQ 5.2.0, and I'm trying to configure a simple test of the
> "failover" transport.  I have two brokers A and B, and a JMS client on a
> remote machine.  I want the client to connect to Broker A, unless it is
> unavailable, in which case it should connect to Broker B.  Likewise, if the
> client is connected to Broker A, and Broker A crashes, or the client
> otherwise loses connection to Broker A, I want it to failover to Broker B.
> Here is my jndi.properties file for the JMS client:
>
> java.naming.factory.initial =
> org.apache.activemq.jndi.ActiveMQInitialContextFactory
>
> # use the following property to configure the default connector
> java.naming.provider.url = tcp://localhost:61616

Did you try changing this property to use failover?
java.naming.provider.url =
failover:(ssl://broker-a:61617,ssl://broker-b:61617)?randomize=false

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Mime
View raw message