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.
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.