Making a pure Java-based Camel Router for deployment in Karaf

Developing our first Camel Router for deployment in Karaf doesn't necessarily require using a handful of frameworks and libraries. In this recipe, we'll make a Camel router using pure Java code with just a sprinkling of OSGi and Camel libraries.

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-recipe3. Follow the instructions in the Installing Apache Camel modules into Apache Karaf recipe to provide the base requirements to operate the sample code.

How to do it…

  1. The first step ...

Get Apache Karaf Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.