public void configure() throws Exception {
// delete the data directory
deleteDirectory("target/data");
// create the hawtdb repo
HawtDBAggregationRepository repo = new HawtDBAggregationRepository("repo1", "target/data/hawtdb.dat");
// here is the Camel route where we aggregate
from("direct:start")
.aggregate(header("id"), new MyAggregationStrategy())
// use our created hawtdb repo as aggregation repository