very good sample
https://stackoverflow.com/questions/23422072/searchview-in-listview-having-a-custom-adapter
This Blog is first of all memos for me!! From time to time I get exposed to new and cool stuff for developers and architects ,most of the time its a solution for a problem or tips or tricks, so, I would like to track my memos and share it with you, it can save your time and nervous, I hope you will enjoy it - by Yaniv Tzanany.
Search This Blog
Friday, July 31, 2020
Thursday, July 16, 2020
Active MQ - monitor non-deliverable message and failover
check this link for reference
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.
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
Subscribe to:
Posts (Atom)