This subproject provides Camel & logging event messages, an Akka-based event dispatcher and some bundles to collect the events in Karaf/ServiceMix and forward them to Kafka topics.
- Apache ServiceMix 7.0.1
- Apache Kafka 1.1.1
Before you start, add the sun.net
package to the org.osgi.framework.system.packages.extra
setting in etc/config.properties
.
org.osgi.framework.system.packages.extra = \
org.apache.karaf.branding, \
org.apache.karaf.jaas.boot.principal, \
org.apache.karaf.jaas.boot, \
sun.misc, \
+ sun.net, \
javax.xml.stream;uses:=\"javax.xml.namespace,javax.xml.stream.events,javax.xml.stream.util,javax.xml.transform\";version=1.2, \
javax.xml.stream.events;uses:=\"javax.xml.namespace,javax.xml.stream\";version=1.2, \
javax.xml.stream.util;uses:=\"javax.xml.namespace,javax.xml.stream,javax.xml.stream.events\";version=1.2, \
Update the etc/org.ops4j.pax.logging.cfg
file to send log events to all appenders
- log4j.rootLogger = INFO, out, osgi:VmLogAppender
+ log4j.rootLogger = INFO, out, osgi:*
Afterwards, just install the features (business as usual)
feature:repo-add mvn:io.guanaco.events/features/1.0-SNAPSHOT/xml/features feature:install guanaco-camel-events guanaco-log-appender guanaco-kafka
If everything is working properly, events will be published to two Kafka topics:
messages
will contain a stream of Camel exchange eventslogging
will contain a stream of logging events