Home » Tag Archives: Apache ActiveMQ

Tag Archives: Apache ActiveMQ

Running Apache ActiveMQ and hawtio in Standalone Mode

hawtio-logo

Apache ActiveMQ is my first choice every time a Message Queue is needed to solve my integration problems.                     Unfortunately the ActiveMQ Web Console is not that comfortable, so I decided to add the Red Hat JBoss project hawtio to my standalone ActiveMQ environment. Hawtio is a modular web console for managing ...

Read More »

ActiveMQ as a Message Broker for Logstash

apache-activemq-logo

When scaling Logstash it is common to add a message broker that is used to temporarily buffer incoming messages before they are being processed by one or more Logstash nodes. Data is pushed to the brokers either through a shipper like Beaver that reads logfiles and sends each event to the broker. Alternatively the application can send the log events ...

Read More »

ActiveMQ – Network of Brokers Explained – Part 5

apache-activemq-logo

In the previous part 4 we have seen how to load balance remote consumers on a queue using network connectors. In this part 5, we will see how the same configuration would work if we had concurrent remote durable subscribers on a topic.  Consider the following configuration….           Fig 1: Network of Brokers – Load balance ...

Read More »

ActiveMQ – Network of Brokers Explained – Part 4

apache-activemq-logo

In the previous part 3 , we have seen how ActiveMQ helps distinguish remote consumers from local consumers which helps in determining shorter routes from message producers to consumers. In this part 4, we will look into how to load balance concurrent consumers on remote brokers. Let’s consider a bit more advanced configuration to load balance concurrent message consumers on ...

Read More »

ActiveMQ – Network of Brokers Explained – Part 3

apache-activemq-logo

Now that we have understood the basics of ActiveMQ network connector in part 1 and part 2 of this blog series, in this part 3, we will examine how ActiveMQ load balances consumers which connect to a network of brokers. Introduction Concurrent consumers are used when messages in a queue can be processed out of order and usually to improve ...

Read More »

ActiveMQ – Network of Brokers Explained – Part 2

apache-activemq-logo

In this blog we will see how duplex network connectors work. In the previous part 1 we created a network connector from broker-1 and broker-2. We were able to see how messages for queue “foo.bar” on broker-1 were forwarded queue “foo.bar” on broker-2 when there was a consumer on broker-2 for queue “foo.bar” Let’s try doing the reverse by producing messages into broker-2’s queue ...

Read More »

ActiveMQ – Network of Brokers Explained

apache-activemq-logo

Objective This 7 part blog series is to share about how to create network of ActiveMQ brokers in order to achieve high availability and scalability. Why network of brokers? ActiveMQ message broker is a core component of messaging infrastructure in an enterprise. It needs to be highly available and dynamically scalable to facilitate communication between dynamic heterogeneous distributed applications which ...

Read More »

Using ActiveMQ – “Master/Slave” configuration with failover protocol

apache-activemq-logo

Introduction ActiveMQ broker(s) tends to be a core piece of messaging infrastructure in an enterprise. It is vital for this messaging infrastructure to be highly available and scalable. Please read this link in order to learn more about creating network of brokers to support various use cases. One of the popular use case for ActiveMQ is the Master/Slave configuration with ...

Read More »

Temp, Store and Memory Percent Usage in ActiveMQ

apache-activemq-logo

In order to effectively use ActiveMQ, it is very important to understand how ActiveMQ manages memory and disk resources to handle non-persistent and persistent messages. ActiveMQ has three key parameters which need to be kept under check. Temp Percent Usage This is the % of assigned disk storage that has been used up to spool non-persistent messages Non persistent messages ...

Read More »

Lessons learned: ActiveMQ, Apache Camel and connection pooling

apache-activemq-logo

Every once in a while, I run into an interesting problem related to connections and pooling with ActiveMQ, and today I’d like to discuss something that is not always very clear and could potentially cause you to drink heavily when using ActiveMQ and Camel JMS. Not to say that you won’t want to drink heavily when using ActiveMQ and Camel ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Advanced Java Guide
  • Java Design Patterns
  • JMeter Tutorial
  • Java 8 Features Tutorial
  • JUnit Tutorial
  • JSF Programming Cookbook
  • Java Concurrency Essentials