activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eivindsi <eivind.sivert...@gmail.com>
Subject Re: Master/slave configuration
Date Fri, 24 Jun 2011 06:40:53 GMT
Instead of having a client "connected" to the slave (the slave will not
accept connections until the master dies, if I remember correctly), you
should use only one client (JMS client 1) and use the failover transport.
The client will then automatically start using the slave when the master
dies.

http://activemq.apache.org/failover-transport-reference.html
http://activemq.apache.org/failover-transport-reference.html 

To detect connection failure you can use
ActiveMQConnectionFactory.setTransportListener(..), and implement the
transportInterupted() and transportResumed() methods.

--
View this message in context: http://activemq.2283324.n4.nabble.com/Master-slave-configuration-tp3621735p3621790.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message