You may have a look at this: http://activemq.apache.org/shared-file-system-master-slave.html
On Tue, May 7, 2013 at 6:10 PM, verystrongjoe <[email protected]>wrote: > I have 4 servers and each server is using jetty embeded with activemq, > infinispan. > activemq modules of each server consist of each producer, consumer, and > broker. > > so, what I want to achieve is .. > > 1) each producer in a server have to be delievered and be consumed message > by a consumer in same server. > 2) if one of servers is killed, messages in killed server have to be > delievered and be consumed to the other server and guarantee that the first > incoming message have higher priority, but it doesn't have to be accurate. > > but i'm new about activemq.. > so with poor knowledge, i set like the followings. > queue broker url of the primary server's consumer > >> > > failover://(failover://(tcp://primary:61616,tcp://secondary:61616,tcp://tertiary:61616,tcp://quaternary:61616)?randomize=false > > queue broker url of the secondary server's consumer > >> > > failover://(failover://(tcp://secondary:61616,tcp://tertiary:61616,tcp://quaternary:61616,tcp://primary:61616)?randomize=false > > i will skip tertiary and quaternary consumer configuration.. > > anyway, I thought I succeed... > > *but the most important thing is that I load producer, consumer, broker in > same jvm and loaded at the same time. > * > > so, if one of server is killed, the queue of other server have to be > notified and must get messages in killed node.. > > how can i sovle this problem? please let me know.. > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/ActiveMQ-Failover-when-the-broker-and-the-consumer-is-killed-tp4666733.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta
