Skip to Main Content
APACHE KARAF COOKBOOK
book

APACHE KARAF COOKBOOK

by Achim Nierbeck, Jamie Goodyear
August 2014
Beginner to intermediate content levelBeginner to intermediate
260 pages
5h 31m
English
Packt Publishing
Content preview from APACHE KARAF COOKBOOK

Configuring and deploying a master/slave broker with Apache Karaf

In this recipe, we will set up and deploy two Karaf instances with embedded ActiveMQ in a master/slave configuration. This is used for high availability in messaging systems. This will allow systems to continue functioning in case of a failure of the active instance.

Getting ready

First we need to get two instances of Karaf started up with an embedded broker. If we are doing this on two different machines, it is actually easier since we will not have port conflicts when using the defaults on both machines. Keep in mind that if you decide to run this deployment on a single machine, one of the instances of Jetty and ActiveMQ embedded in Karaf needs to have its ports changed.

How to do ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Instant OSGi Starter

Instant OSGi Starter

Jamie Goodyear, Johan Edstrom
Learning Docker - Second Edition

Learning Docker - Second Edition

Pethuru Raj, Vinod Singh, Jeeva S. Chelladhurai

Publisher Resources

ISBN: 9781783985081Supplemental Content