Table of Contents
Learning Karaf Cellar
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Apache Karaf â Provisioning and Clusters
What is OSGi?
The OSGi framework
The OSGi bundle
Dependency between bundles
The OSGi container
Provisioning in Apache Karaf
OBR
Apache Karaf Features
Multiple Apache Karaf containers
Provisioning clusters
Summary
2. Apache Karaf Cellar
Cluster topologies
Apache Karaf Cellar architecture
Apache Karaf Cellar installation and first commands
Cluster resources
Bundles
Karaf features
Configuration
Optional resources
The Karaf WebConsole plugin
Summary
3. Hazelcast
What is Hazelcast?
Distributed cluster resource states
Distributed queues and topics
The Cellar distributed map
Replicas/Backup
Persistence
Networks
Multiple clusters
TCP/IP
Interfaces
SSL
Encryption
IPv6 support
Restricting outbound ports
Summary
4. Cluster Groups
Managing cluster groups
Targeting provisioning
Features
Bundles
Configurations
Optional resources
Overlapping
The summary of commands
Summary
5. Producers, Consumers, Handlers, Listeners, and Synchronizers
The event producer
The event consumer
Event handlers
Listeners and synchronizers
Summary
6. The Filtering of Cluster Events
The configuration of the filters
Resources
Blacklist and whitelist
Inbound and outbound
Regex and event identification
Bundle
Configuration
Features
The default filter configuration
Summary
7. DOSGi
What is Cellar DOSGi?
The API bundle
The service bundle
The client bundle
Summary
8. Cellar and Camel
The communication between remote routes
Caching with a distributed map
Summary
9. Roadmap
HTTP load balancing and session clustering
Load balancing
Session clustering
Clustering a log service
Summary
Index
Copyright © 2014 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: July 2014
Production reference: 1150714
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78398-460-2
www.packtpub.com
Author
Jean-Baptiste Onofré
Reviewers
Ladislav GaĆŸo
Sachin Handiekar
Achim Nierbeck
Commissioning Editor
Usha Iyer
Acquisition Editor
Meeta Rajani
Content Development Editor
Susmita Panda Sabat
Technical Editors
Mrunal Chavan
Ankita Jha
Pankaj Kadam
Copy Editors
Alisha Aranha
Roshni Banerjee
Dipti Kapadia
Aditya Nair
Karuna Narayanan
Project Coordinator
Neha Thakur
Proofreaders
Simran Bhogal
Ameesha Green
Paul Hindle
Indexers
Hemangini Bari
Tejal Soni
Graphics
Ronak Dhruv
Valentina D'silva
Production Coordinator
Nilesh R. Mohite
Cover Work
Nilesh R. Mohite
Jean-Baptiste Onofré is a member of the Apache Software Foundation, and he has been involved in Apache projects for the past 10 years. He is the PMC chair of Apache Karaf and its subprojects, including Cellar, Cave, and EIK.
He is also a PMC member of Apache ACE, Apache ServiceMix, and Apache Syncope, and he is a committer for Apache ActiveMQ, Apache Archiva, Apache Aries, Apache Camel, and Apache jClouds.
He is currently working for Talend (http://www.talend.com) as a software architect and is a member of the Talend Apache team.
He writes articles on Java technologies for Linux Magazine France and has worked as a reviewer for Apache ServiceMix How-To, Henryk Konsek, and Learning Apache Karaf, Johan Edstrom, Jamie Goodyear, and Heath Kesler. Both of these books are published by Packt Publishing. He is currently reviewing Apache Karaf Cookbook, Johan Edstrom, Jamie Goodyear, Heath Kesler, and Achim Nierbeck, Packt Publishing.
He has also given speeches about Apache projects (Karaf, Camel, and so on) at different conferences, especially at ApacheCon NA, ApacheCon Europe, and CamelOne.
Ladislav GaĆŸo is a computer enthusiast who has been digging into the software world for a long time. He has professional experience of more than 12 years in development and software engineering. While starting experiments with computer graphics and network administration, he realized that the true path is towards the combination of ...