activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rakeshxp <>
Subject Configuration for failover
Date Sun, 20 Jun 2010 14:48:44 GMT


I have a configuration query regarding use of failovers in activemq. My
current setup is that:
1) I have 2 hosts running activemq with the second host intended to be a
2) On the primary host, I have multiple publishers ( to a single queue ) and
a single consumer reading that queue. 

I am looking to setting up the failover activemq on host2 with the following
1) The publishers ( using java client ) should continue to write messages to
the queue on host1 ( and if host1 is down, write it to host2).
2) The consumer ( using java client ) should read the messages in the queue
of host1 and if down, read from host2.
3) When host1 is back online, the consumer should be start reading from
host1 again ( after processing any pending messages on host2).

Could anyone guide me on what is the right configuration ( activemq.xml and
java connect url ) to achieve the same? What is the ideal way to solve the
host failure case?

Thanks in advance!
- Rakesh
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message