https://activemq.apache.org/message-redelivery-and-dlq-handling
the idea is to monitor none deliverable messages , and log them into Dead Letter Queue (DLQ).
just add this part into activemq.xml
<policyentry queue=">"> <deadletterstrategy> <shareddeadletterstrategy processnonpersistent="true"> </shareddeadletterstrategy></deadletterstrategy> </policyentry>
auto ActiveMQ.DLQ queue will created with the none deliverable messages.
failover queue.
the idea is to have extra activemq server ,(as slave) so if the main active mq is down all the messsages redirect to the "slave"
reference https://activemq.apache.org/failover-transport-reference.html
just use such url e.g.
failover:(tcp://localhost:61616,tcp://remotehost:61616)?initialReconnectDelay=100
to use order queue and not randomize queue , add randomize=false
e.g.
failover:(tcp://primary:61616,tcp://secondary:61616)?randomize=false
enjoy
Yaniv Tzanany
No comments:
Post a Comment