Adding Configuration Admin to a Blueprint-based Camel Router

Blueprint allows us to externalize some configuration elements from our code; we can take this to the next level by taking advantage of the OSGi configuration administration service (generally referred to as Configuration Admin).

The Configuration Admin service provides configuration properties to services in an OSGi container. In Apache Karaf, this functionality is improved by including the Apache Felix File Install directory-based management agent. File Install monitors a directory and can automatically install and start a bundle or make a configuration file update to Configuration Admin.

Note

Apache Felix File Install provides the magic behind Karaf's deploy and etc folders, automatically ...

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.