Learning Karaf Cellar
eBook - ePub

Learning Karaf Cellar

Jean-Baptiste Onofre

Share book
  1. 124 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Learning Karaf Cellar

Jean-Baptiste Onofre

Book details
Book preview
Table of contents
Citations

About This Book

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.

Approach

This book is a tutorial written with a step-by-step approach to help you implement an optimum clustering solution in Apache Karaf Cellar quickly and efficiently.

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.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Learning Karaf Cellar an online PDF/ePUB?
Yes, you can access Learning Karaf Cellar by Jean-Baptiste Onofre in PDF and/or ePUB format, as well as other popular books in Computer Science & Application Development. We have over one million books available in our catalogue for you to explore.

Information

Year
2014
ISBN
9781783984602
Edition
1

Learning Karaf Cellar


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

Learning Karaf Cellar

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
Cover image by Abhinav Pandey ()

Credits

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

About the Author

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.

About the Reviewers

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

Table of contents