Installing Apache ActiveMQ modules into Apache Karaf

Installing an ActiveMQ broker into a Karaf instance requires very little effort. This recipe will show you how easy it is to get ActiveMQ embedded and running. In order to install the ActiveMQ broker in Karaf, we first need to add the feature URL.

How to do it…

Out of the box, Karaf does not come with ActiveMQ installed. But do not fret, for Karaf makes it very easy to install it. The steps are as follows:

  1. First we need to install the XML features by adding the repo for the version we expect to use. This can be done using the following command:
    feature:repo-add activemq <version>
    

    The following screenshot shows us how to start:

  2. Now that we have the features available, we can list them using the following ...

Get Apache Karaf Cookbook 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.