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