Home » Minibooks » Apache ActiveMQ Cookbook

Apache ActiveMQ Cookbook

About the author

JCGs (Java Code Geeks) is an independent online community focused on creating the ultimate Java to Java developers resource center; targeted at the technical architect, technical team lead (senior developer), project manager and junior developers alike.

JCGs serve the Java, SOA, Agile and Telecom communities with daily news written by domain experts, articles, tutorials, reviews, announcements, code snippets and open source projects.

You can find them online at https://www.javacodegeeks.com/

Apache ActiveMQ is an open source message broker written in Java together with a full Java Message Service (JMS) client. It provides “Enterprise Features” which in this case means fostering the communication from more than one client or server. Supported clients include Java via JMS 1.1 as well as several other “cross language” clients. The communication is managed with features such as computer clustering and ability to use any database as a JMS persistence provider besides virtual memory, cache, and journal persistency.

The ActiveMQ project was originally created by its founders from LogicBlaze in 2004, as an open source message broker, hosted by CodeHaus. The code and ActiveMQ trademark were donated to the Apache Software Foundation in 2007, where the founders continued to develop the codebase with the extended Apache community.

ActiveMQ employs several modes for high availability, including both file-system and database row-level locking mechanisms, sharing of the persistence store via a shared filesystem, or true replication using Apache ZooKeeper. A robust horizontal scaling mechanism called a Network of Brokers, is also supported out of the box. In the enterprise, ActiveMQ is celebrated for its flexibility in configuration, and its support for a relatively large number of transport protocols, including OpenWire, STOMP, MQTT, AMQP, REST, and WebSockets.

ActiveMQ is used in enterprise service bus implementations such as Apache ServiceMix and Mule. Other projects using ActiveMQ include Apache Camel and Apache CXF in SOA infrastructure projects. (Source)

In this book, we provide a series of tutorials on Apache ActiveMQ that will help you kick-start your own projects. We cover
a wide range of topics, from Apache ActiveMQ Best Practices, to Load Balancing and File Transfer Examples. With our
straightforward tutorials, you will be able to get your own projects up and running in minimum time.


Apache ActiveMQ Cookbook includes:

  1. ActiveMQ “HelloWorld” Example
  2. ActiveMQ Monitoring Tutorial
  3. ActiveMQ Best Practices Tutorial
  4. ActiveMQ Distributed Queue Tutorial
  5. ActiveMQ BrokerService Example
  6. ActiveMQ Load Balancing Example
  7. ActiveMQ Failover Example
  8. ActiveMQ Advisory Example
  9. ActiveMQ File Transfer Example
JCG eBooks are professionally designed, downloadable collections of popular JCG content – articles, interviews, presentations, and research – covering the latest software development technologies, trends, and topics.