EventNotifer to log details about all sent ExchangesPage added by Claus IbsenEventNotifer to log details about all sent ExchangesIf you want to log information all time taken to send and receive replies when sending to external endpoints, then you can leverage the Event Notifier in Camel. It allows you to subscribe to events and react upon them. For example we want to log the time it takes to send to endpoints which can be done by implementing a class which this logic as follows: Then in Java DSL you can tell Camel to use your custom EventNotifier simply by adding it:
context.getManagementStrategy().addEventNotifier(new MyLoggingSentEventNotifer());
Change Notification Preferences
View Online
|
Add Comment
|
