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

Get Apache Karaf Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.