December 2013
Intermediate to advanced
424 pages
9h 7m
English
Aggregation according to size or predicate as described in the Aggregating related messages recipe is an excellent foundation for batching messages together. This recipe will describe how to use timeouts to release an aggregated message if no additional exchanges have been received for aggregation in a while.
The Java code for this recipe is located in the org.camelcookbook.splitjoin.aggregatetimeouts package. The Spring XML example is located in src/main/resources/META-INF/spring/aggregateCompletionTimeout-context.xml.
Inside your Aggregator definition, add a completionTimeout attribute containing a timeout in milliseconds. The attribute can be used as the sole aggregation condition, or in combination ...
Read now
Unlock full access