Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

EventNotifierSupport in OSGI environment

$
0
0
Hey all,

I'm trying to setup a custom EventNotifierSupport within a OSGI environment
Karaf 2.3.6 and Camel 2.13.2.
Before I tried to create it in an OSGI setup I tried a local stand alone
application with a simple camel context with succes.

However now I'm creating a bean in my blueprint file with my custom
EventNotifierSupport class. The Karaf/camel log notifies me that a custom
EventNotifier is found a being used by my camel context.

But despite many efforts to log anything or debugging with breakpoints, not
a thing is captured. This is how my context looks like:

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">

<bean class="nl.kabisa.flux.transactions.FluxEventLogger">
<property name="ttl" value="24"/>
</bean>

<camelContext id="ID_54b681bd4e69651dd4010000"
xmlns="http://camel.apache.org/schema/blueprint" useMDCLogging="true"
streamCache="true">
<streamCaching id="streamCacheConfig" spoolThreshold="0"
spoolDirectory="tmp/camelcontext-#camelId#"
spoolUsedHeapMemoryThreshold="70"/>

<route>
<from
uri="file:/tmp/in?autoCreate=true橪;charset=utf-8橪;delay=500橪;delete=false橪;initialDelay=1000橪;recursive=false"/>
<to uri="activemq:ID_2"/>
</route>
<route>
<from uri="activemq:ID_2"/>
<to
uri="file:/tmp/out?autoCreate=true橪;charset=utf-8橪;fileExist=Override"/>
</route>
</camelContext>

Thanks,

Niels

Viewing all articles
Browse latest Browse all 5648

Trending Articles