Search This Blog

Showing posts with label ActiveMQ. Show all posts
Showing posts with label ActiveMQ. Show all posts

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="&gt;"> <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

Thursday, July 17, 2014

Connect JMX into ActiveMQ

this is how to connect JMX to ActiveMQ via VisualVM.

edit the activemq.xml in the conf folder.

search for the node managementContext

set the createConnector="true" and add  connectorPort="XXXX",
XXX is a port number.

e.g.
        <managementContext>
            <managementContext createConnector="true" connectorPort="1199"/>
        </managementContext>


open the VisualVM
add remote host if needed
add JMX connection


       

           
i liked to add the VisuaulVM Mbeans plugin - to send message to active mq

       


this how i can send messages into it


enjoy
Yaniv Tzanany


Thursday, August 16, 2012

ActiveMQ - strater minutes

The next minutes are the link and info i used to start my way with ActiveMQ product.