This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
We will include documentation regarding Aggregation in the M4 release.
Meanwhile, I would suggest to take a look at the tests. You will find some examples the com.springframework.integration.config. Look at aggregatorParserTests.xml for xml-based configuration, and to
AggregatorAnnotationTests/CompletionStrategyAnnotationTests/TestAnnotatedEndpoint* for annotation-based configurations.
Iwein, thanks for the sample you provided! It really shows how simple things can get. Two warnings: for once, this will work only with the latest snapshot of Spring Integration, or with the M4 distribution, due to a needed fix (INT-198). Earlier versions should return a Message and set the sequenceNumber and sequenceSize properties programmatically.
Secondly, with the last snapshot the aggregator method now expects a List as an argument, as opposed to a collection. This is mainly to accommodate the needs of the CompletionStrategy, as well as an indicator that the collection of messages passed in has List semantics (not Set or any other kind of Collection).