Book Image

APACHE KARAF COOKBOOK

Book Image

APACHE KARAF COOKBOOK

Overview of this book

Table of Contents (17 chapters)
Apache Karaf Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a Blueprint-based Camel Router for deployment in Karaf


Blueprint provides a dependency injection framework for OSGi. Many users will find that it has similarities with the Spring framework. However, Blueprint has been designed to deal with the dynamic runtime of OSGi where services come and go regularly.

The standard Apache Camel-Karaf feature contains the required Camel-Blueprint libraries for users to immediately start using Blueprint to wire together their routes. In this recipe, we'll build a Camel Router, taking advantage of the Blueprint Inversion of Control framework.

Getting ready

The ingredients of this recipe include the Apache Karaf distribution kit, access to JDK, Maven, and a source code editor. The sample code for this recipe is available at https://github.com/jgoodyear/ApacheKarafCookbook/tree/master/chapter2/chapter2-recipe4. Follow the instructions in the Installing Apache Camel modules into Apache Karaf recipe's Getting ready section to provide the base requirements...