Karaf

Posts tagged with Karaf.

Apache Felix Configuration Admin and collections

A long time ago I wrote an post about [Configuration Admin and Arrays](/2015/02/apache-felix-configuration-admin-with-array-values/). Recently I attempted to use this feature with openHAB and I found that it doesn't work with its configuration framework.

Advanced Apache Camel logging and best practices

Apache Camel supports a [mapped diagnostic context](http://camel.apache.org/mdc-logging.html) which can be used to improve log entries, but also there is a [log component](http://camel.apache.org/log) which makes it easier to create log entries. Together they can be used to create foundations of activity monitoring without need to deploy another tool or database.

Running aspects under OSGi 4.2 with Karaf

One of bigest benefits of Java is byte code manipulation. You can change everything you want in your application without touching source code. That's usefull for many cases, starting from legacy code, where we can't simply modify and recompile library up to modern applications where aspects can be used to handle runtime exceptions. The most popular project is [AspectJ](http://eclipse.org/aspectj/) which is part of [Eclipse](http://eclipse.org) ecosystem, in this post I going to show you how to use AspectJ with Karaf.