Book Image

Learning NServiceBus Sagas

By : Richard L Helton
Book Image

Learning NServiceBus Sagas

By: Richard L Helton

Overview of this book

Table of Contents (13 chapters)

ActiveMQ in NSB


Apache Active Message Queue (ActiveMQ) is a JAVA open source framework from the Apache foundation based on the Java Message Service (JMS). Visit http://en.wikipedia.org/wiki/Apache_ActiveMQ and https://activemq.apache.org for more information. It will run on a machine, be it Windows or Linux, in a Java Runtime Environment (JRE). JAVA has to be operational on the machine and have the environment path for JAVA_HOME configured to point at the root folder of the JRE. The installation instructions for ActiveMQ can be found at https://activemq.apache.org/getting-started#GettingStarted%20-Download.

The source code

In this section, we will be using the ActiveMQ solution. This solution is similar to RabbitMQ, except ActiveMQ is used instead of RabbitMQ.

There will be three basic steps:

  1. Add the NServiceBuActiveMQ reference.

  2. Change the NServiceBus transport mechanism from <MSMQ> to <ActiveMQ>.

  3. Set the ActiveMQ transport configuration in the App.config file.

Once downloaded on...