项目作者: guanaco-io

项目描述 :
Akka-based event dispatcher for Camel & logging events
高级语言: Scala
项目地址: git://github.com/guanaco-io/events.git
创建时间: 2018-10-26T07:16:20Z
项目社区:https://github.com/guanaco-io/events

开源协议:Apache License 2.0

下载


guanaco — events

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.

Requirements

  • Apache ServiceMix 7.0.1
  • Apache Kafka 1.1.1

Installation

config.properties

Before you start, add the sun.net package to the org.osgi.framework.system.packages.extra setting in etc/config.properties.

  1. org.osgi.framework.system.packages.extra = \
  2. org.apache.karaf.branding, \
  3. org.apache.karaf.jaas.boot.principal, \
  4. org.apache.karaf.jaas.boot, \
  5. sun.misc, \
  6. + sun.net, \
  7. javax.xml.stream;uses:=\"javax.xml.namespace,javax.xml.stream.events,javax.xml.stream.util,javax.xml.transform\";version=1.2, \
  8. javax.xml.stream.events;uses:=\"javax.xml.namespace,javax.xml.stream\";version=1.2, \
  9. javax.xml.stream.util;uses:=\"javax.xml.namespace,javax.xml.stream,javax.xml.stream.events\";version=1.2, \

org.ops4j.pax.logging.cfg

Update the etc/org.ops4j.pax.logging.cfg file to send log events to all appenders

  1. - log4j.rootLogger = INFO, out, osgi:VmLogAppender
  2. + log4j.rootLogger = INFO, out, osgi:*

Feature

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

Events

If everything is working properly, events will be published to two Kafka topics:

  • messages will contain a stream of Camel exchange events
  • logging will contain a stream of logging events