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.
