karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-5033) Provide a Camel EventNotifier collector
Date Thu, 13 Jul 2017 07:51:00 GMT

    [ https://issues.apache.org/jira/browse/KARAF-5033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16085319#comment-16085319

Jean-Baptiste Onofré commented on KARAF-5033:

The Camel Notifier is only enabled if a Camel Notifier bean is defined in the Camel Context.

So, we don't need a cfg file. As for the tracer,  the user has to explicitly defines the notifier,

<bean id="myLoggingEventNotifier" class="org.apache.camel.processor.MyLoggingSentEventNotifer"/>
<camelContext xmlns="http://camel.apache.org/schema/spring">
        <from uri="direct:start"/>
        <to uri="direct:bar"/>
        <to uri="mock:result"/>
        <from uri="direct:bar"/>


context.getManagementStrategy().addEventNotifier(new MyLoggingSentEventNotifer());

I created the module with an implementation. Let me push.

> Provide a Camel EventNotifier collector
> ---------------------------------------
>                 Key: KARAF-5033
>                 URL: https://issues.apache.org/jira/browse/KARAF-5033
>             Project: Karaf
>          Issue Type: New Feature
>          Components: decanter
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: decanter-1.4.0
>         Attachments: DecanterEventNotifier.java
> Similar to the Camel Tracer collector, we could provide a Camel EventNotifier collector
receiving Camel events (like Exchange created, etc) as described here http://camel.apache.org/eventnotifier-to-log-details-about-all-sent-exchanges.html

This message was sent by Atlassian JIRA

View raw message