Available as of Camel 2.3
This example demonstrates the new overhauled Aggregator EIP in Apache Camel 2.3. The example is focused on the persistence support, which means the aggregated messages is stored in a persistent file storage using the new HawtDB component.
How to run
You simply run it using the following maven goal:
How it works
The example is an interactive example where it prompt on the console for you to enter a number and press ENTER. The numbers you enter will then be aggregated and persisted. That means you can at any time hit
When you want to complete the aggregation you can enter
The persistent datastore is located in the
For example we start the example for the first time using
Now we start the example again using
The example is configured as follows in Spring XML.
And it has a