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

Building and deploying a distributed architecture with Cellar


This recipe describes how to build a clustered application and the transparent usage of services throughout the cluster. We will show you how to create a Cellar-based Distributed OSGi (DOSGi) application and how you can profit from Apache Karaf Cellar.

Getting ready

It is essential that you finish at least the Installing Apache Karaf Cellar modules in Apache Karaf recipe to have a clustered environment for testing. You should also be familiar with the cluster commands presented to you in the Using Apache Karaf Cellar commands recipe. The sources used in this recipe can be found at https://github.com/jgoodyear/ApacheKarafCookbook/tree/master/chapter6/chapter6-recipe3.

How to do it…

First of all, we will need an additional cluster group with an extra node. For this, we will create an additional instance first, using the following command:

karaf@root()> instance:create sender

Start this instance and install the cellar feature in it...