Creating ActiveMQ applications (Simple)

In this recipe we are going to create a very simple JMS application that places a message on a queue in ActiveMQ and consumes that message from the queue immediately after. This example demonstrates many of the JMS APIs that we will be using in the future recipes.

Getting ready

In this recipe, we will be referencing the simple-jms-application project that contains the full working code and Maven POM file. You should have a default installation of the ActiveMQ Broker running before attempting to execute the sample application in this recipe.

How to do it...

To run the sample for this recipe you will need to perform the following steps:

  1. Open a terminal and start an instance of the ActiveMQ Broker.
  2. Open a second ...

Get Instant Apache ActiveMQ Messaging Application Development How-to now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.