Free Sample
+ Collection

Learning Karaf Cellar

Jean-Baptiste Onofré

Build and implement a complete clustering solution for the Apache Karaf OSGi container
RRP $13.99
RRP $22.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781783984602
Paperback124 pages

About This Book

  • Install and use Cellar as a provisioning clustering solution for Apache Karaf
  • Extend Cellar usage to more than just provisioning by implementing distributed solutions
  • Practical, step-by-step tutorial with real use cases and examples to help you seamlessly manage a cluster of Karaf Instances

Who This Book Is For

If you are new to Karaf and want to install and manage multiple Karaf instances by farming or clustering, then this book is for you. If you are a Java developer or a system administrator with basic knowledge of Karaf, you can use this book as a guide. Some background knowledge of OSGi and/or Karaf would be preferred but is not mandatory.

Table of Contents

Chapter 1: Apache Karaf – Provisioning and Clusters
What is OSGi?
The OSGi container
Multiple Apache Karaf containers
Chapter 2: Apache Karaf Cellar
Cluster topologies
Apache Karaf Cellar architecture
Apache Karaf Cellar installation and first commands
Cluster resources
Chapter 3: Hazelcast
What is Hazelcast?
Distributed cluster resource states
Chapter 4: Cluster Groups
Managing cluster groups
Targeting provisioning
Chapter 5: Producers, Consumers, Handlers, Listeners, and Synchronizers
The event producer
The event consumer
Event handlers
Listeners and synchronizers
Chapter 6: The Filtering of Cluster Events
The configuration of the filters
Blacklist and whitelist
Inbound and outbound
Regex and event identification
The default filter configuration
Chapter 7: DOSGi
What is Cellar DOSGi?
The API bundle
The service bundle
The client bundle
Chapter 8: Cellar and Camel
The communication between remote routes
Caching with a distributed map
Chapter 9: Roadmap
HTTP load balancing and session clustering
Clustering a log service

What You Will Learn

  • Explore the Apache Karaf OSGi container and its features
  • Install and configure multiple Karaf containers
  • Leverage Hazelcast using Cellar to provide clustering
  • Create and manage multiple cluster groups
  • Discover the different components of Cellar and how to administrate them
  • Implement a fine-grained topology by filtering cluster events
  • Use Cellar to implement remote communication between OSGi bundles (DOSGi)
  • Use Cellar with Camel to implement a remote communication between Camel routes and a distributed cache

In Detail

Apache Karaf is a popular OSGi container that provides rich and broad features, and together with Cellar, you can easily manage farms of containers that provide synchronization between the instances of Karaf. In a real production system, users require a farm of containers to implement failover and scalability, as well as the tools required to provision the different members of a cluster. This book will help you understand the architecture, installation, and configuration of a cluster and teach you about different components and features to get the best out of a clustering solution using Apache Karaf Cellar.

Learning Karaf Cellar starts with an introduction to some of the key features of Karaf. After a quick but detailed understanding of OSGi and Karaf, this book takes you through the concept of provisioning clusters and then covers what Cellar is and how to use it.


Read More