-
Book Overview & Buying
-
Table Of Contents
Apache Camel Developer's Cookbook
Camel's Log Component includes the ability to see the average throughput of messages flowing through your route. It is not a perfect measure, though it will help you tune your route to reach the throughput you are hoping for. It can also help you to validate that any Throttle EIPs (see the Throttler – restricting the number of messages flowing to an endpoint recipe in Chapter 2, Message Routing) you put in place are doing the right thing.
This recipe will show you how to use the Log Component to report (log) the average message flow throughput of your integration route.
The Java code for this recipe is located in the org.camelcookbook.monitoring.logthroughput package. The Spring XML files are located under src/main/resources/META-INF/spring and prefixed with logthroughput.
Use the groupSize attribute as a part of the log: endpoint URI.
In the XML DSL, this is written as:
<route>
<from uri="direct:start"/>
<...