Book Image

Apache Karaf Cookbook

By : Jamie Goodyear, Johan Edstorm, Achim Nierbeck, Heath J Kesler
Book Image

Apache Karaf Cookbook

By: Jamie Goodyear, Johan Edstorm, Achim Nierbeck, Heath J Kesler

Overview of this book

Table of Contents (17 chapters)
Apache Karaf Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Configuring and deploying a Network of Brokers with Apache Karaf


Many times, a single system may not be enough to handle the load of the applications. In this case, scaling is needed to balance load across multiple systems. We can scale applications using embedded ActiveMQ instances in a Network of Brokers (NoB) configuration.

This is different from a master/slave configuration because we will have two active instances rather than an active and passive pair.

Getting ready

By following the same initial setup in the previous recipe, we need to have two instances of Karaf running. We can prove this concept on a single machine or multiple machines. For this recipe, we will again be showing you how to set up two instances on the same machine, which requires different ports to be used for the different Karaf instances.

Ensure that the defaults for the two instances are in place.

How to do it…

Please follow these steps to configure and deploy a Network of Brokers configuration:

  1. Open the org.apache.activemq...