Welcome to the new Spring.io forums!
If this is your first visit, be sure to check out the
by clicking the link above, and for security reasons, use the
forgot password link to reset your password..
You may have to register before you can post: click the register
link above to proceed. To start viewing messages, select the forum that you want to visit
from the selection below.
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).