Learning Apache Karaf
By Johan Edstrom, Jamie Goodyear, Heath Kesler
Publisher: Packt Publishing
Final Release Date: October 2013
Pages: 128

In Detail

Apache Karaf is more than just an OSGi-based runtime container; it’s an ecosystem of open source technologies that makes operating and managing applications easier. Karaf supports hot deployment of OSGi bundles by monitoring jar files inside the [home]/deploy directory. Each time a jar is copied in this folder, it will be installed inside the runtime. You can then update or delete it, and changes will be handled automatically. In addition, Karaf also supports exploded bundles and custom deployers.

Learning Apache Karaf will introduce developers and administrators alike to the OSGi-based container, and impart best practices by example. The book shows you how to set up an Apache Karaf distribution, and how to arrive at a production-ready deployment. Learning Apache Karaf teaches you everything you need to install, configure, and administer Apache Karaf.

Learning Apache Karaf will help guide you through the complexity of an OSGi container using sample code and configuration snippets to demonstrate the important aspects of managing and running a Karaf instance.

Learning to install and command the runtime is just the beginning; deploying and provisioning applications is just as important to the successful implementation of a stable and scalable architecture. You will discover how to monitor runtime environments using remote access, logging, and JMX, and you will also develop production-level architectures with high availability and security.

Approach

The book is a fast-paced guide full of step-by-step instructions covering all aspects of application development using Apache Karaf.

Who this book is for

Learning Apache Karaf will benefit all Java developers and system administrators who need to develop for and/or operate Karaf’s OSGi-based runtime. Basic knowledge of Java is assumed.

Product Details
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyLearning Apache Karaf
 
4.0

(based on 2 reviews)

Ratings Distribution

  • 5 Stars

     

    (0)

  • 4 Stars

     

    (2)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

Reviewed by 2 customers

Sort by

Displaying reviews 1-2

Back to top

 
4.0

A good introduction to Karaf

By fbalicchia

from Milano

Verified Reviewer

Comments about oreilly Learning Apache Karaf:

Do you want a book that introduce you to Karaf ? If yes this book is the rigth book.

It's not a simple repackaging of online documentation but is organic introduction to karaf and main features that revolve around it.

By the way community around Karaf is very vibrant and The book give you the basis To use it and keep up with the new features

 
4.0

I wish I had it when I was started Karaf

By Ehsan Zaery Moghaddam

from Tehran, Iran

About Me Designer, Developer, Educator

Verified Reviewer

Pros

  • Concise
  • Easy to understand
  • Helpful examples
  • Well-written

Cons

  • Could Cover More Topics

Best Uses

  • Intermediate
  • Novice

Comments about oreilly Learning Apache Karaf:

About a year ago, when I've started to use Apache Karaf, I couldn't realize the exact role of Apache Karaf in OSGi world and the way I could benefit from it. Even today, if you search for Apache Karaf, you can find some blog posts and tutorials, that almost all of them are authored by project's contributors explaining some intermediate to advance topics in Apache Karaf. Beside reading some of these blog posts, I've started reviewing project's source code and debugging some parts to get familiar with the way it works in certain scenarios. So I think I know the real value of having such a handy book if you want to start learning Apache Karaf.

The book is well suited for those who already have decent understanding and experience with OSGi development and want to start using Apache Karaf in real world. It doesn't make you a master in OSGi development using Apache Karaf or administering it, but as the authors have stated in the preface of the book "It provide you with all the information that you'll need to get up and running with the Karaf runtime".

You can use it as a handbook till you reach the intermediate level in developing or administering OSGi applications using Apache Karaf. The book is well organized and topics are concise and useful.

It starts from installation instructions on chapter one and continuous in chapter two by explaining the way you can command Karaf in its console and how to develop custom commands. In chapter three, you will learn how to configure startup and logging properties as well as system configurations for fail-over, hot deployment and web console.
Chapter four covers provisioning and the way it's implemented in Apache Karaf. It introduces the concept of "Feature" and how you can use it to package your OSGi applications.
Deploying applications in Karaf is the topic of fifth chapter. It also covers in details how to deploy non-OSGi jar files, Spring/Blueprint applications or WAR files as an OSGi bundle in Apache Karaf.
From chapter six, the focus changes from development to production environment and the way you have to configure and administer Apache Karaf to make it ready in production mode. Preparing an offline maven repository, installing Apache Karaf as a service and managing roles and security configuration are explained in this chapter.
Chapter seven is completely dedicated to Apache Karaf Cellar, a clustering solution for Karaf, powered by Hazelcast. The process of node discovery, cloud discovery and concepts like cluster group are described in this chapter.
And Finally, in chapter eight, titled "Our Final Programming Project", authors have developed a complete OSGi application from startup to cover whole development process in details from preparing the project skeleton using relevant Maven plugins to extending console with custom commands and finally packaging application using Feature descriptors and deploying it in container.

The following items were among my favorite topics or notes:

- Important startup properties and the way Apache Karaf processes custom configuration property files
- How to build an offline repository to install your application in environment that has no access to public repositories to install bundles from
- Apache Karaf Cellar and the way I can use it to cluster Karaf instances

As a final though, I recommend reading this book to anyone who wants to start using Apache Karaf and has no previous knowledge about it.

Displaying reviews 1-2

Back to top

 
Buy 2 Get 1 Free Free Shipping Guarantee
Buying Options
Immediate Access - Go Digital what's this?
Ebook: $21.99
Formats:  ePub, Mobi, PDF