[
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, like:
{code}
<bean id="myLoggingEventNotifier"
class="org.apache.camel.processor.MyLoggingSentEventNotifer"/>
<camelContext xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="direct:start"/>
<to uri="direct:bar"/>
<to uri="mock:result"/>
</route>
<route>
<from uri="direct:bar"/>
<delay><constant>1000</constant></delay>
</route>
</camelContext>
{code}
or
{code}
context.getManagementStrategy().addEventNotifier(new
MyLoggingSentEventNotifer());
{code}
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
(v6.4.14#64029)