You are previewing Learning Karaf Cellar.
O'Reilly logo
Learning Karaf Cellar

Book Description

Build and implement a complete clustering solution for the Apache Karaf OSGi container

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

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
  • Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

    Table of Contents

    1. Learning Karaf Cellar
      1. Table of Contents
      2. Learning Karaf Cellar
      3. Credits
      4. About the Author
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers, and more
          1. Why subscribe?
          2. Free access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. Apache Karaf – Provisioning and Clusters
        1. What is OSGi?
          1. The OSGi framework
          2. The OSGi bundle
          3. Dependency between bundles
        2. The OSGi container
          1. Provisioning in Apache Karaf
          2. OBR
          3. Apache Karaf Features
        3. Multiple Apache Karaf containers
          1. Provisioning clusters
        4. Summary
      9. 2. Apache Karaf Cellar
        1. Cluster topologies
        2. Apache Karaf Cellar architecture
        3. Apache Karaf Cellar installation and first commands
        4. Cluster resources
          1. Bundles
          2. Karaf features
          3. Configuration
          4. Optional resources
          5. The Karaf WebConsole plugin
        5. Summary
      10. 3. Hazelcast
        1. What is Hazelcast?
        2. Distributed cluster resource states
          1. Distributed queues and topics
          2. The Cellar distributed map
        3. Replicas/Backup
          1. Persistence
        4. Networks
          1. Multiple clusters
          2. TCP/IP
          3. Interfaces
          4. SSL
          5. Encryption
          6. IPv6 support
          7. Restricting outbound ports
        5. Summary
      11. 4. Cluster Groups
        1. Managing cluster groups
        2. Targeting provisioning
          1. Features
          2. Bundles
          3. Configurations
          4. Optional resources
          5. Overlapping
          6. The summary of commands
        3. Summary
      12. 5. Producers, Consumers, Handlers, Listeners, and Synchronizers
        1. The event producer
        2. The event consumer
        3. Event handlers
        4. Listeners and synchronizers
        5. Summary
      13. 6. The Filtering of Cluster Events
        1. The configuration of the filters
        2. Resources
        3. Blacklist and whitelist
        4. Inbound and outbound
        5. Regex and event identification
          1. Bundle
          2. Configuration
          3. Features
        6. The default filter configuration
        7. Summary
      14. 7. DOSGi
        1. What is Cellar DOSGi?
        2. The API bundle
        3. The service bundle
        4. The client bundle
        5. Summary
      15. 8. Cellar and Camel
        1. The communication between remote routes
        2. Caching with a distributed map
        3. Summary
      16. 9. Roadmap
        1. HTTP load balancing and session clustering
          1. Load balancing
          2. Session clustering
        2. Clustering a log service
        3. Summary
      17. Index