Now propagating the 'correlationId' on the aggregation result Message's header.

This commit is contained in:
Mark Fisher
2008-05-31 14:34:49 +00:00
parent 241aae8295
commit 66147a71ab

View File

@@ -241,6 +241,9 @@ public class AggregatingMessageHandler implements MessageHandler, InitializingBe
return;
}
Message<?> result = aggregator.aggregate(messages);
if (result.getHeader().getCorrelationId() == null) {
result.getHeader().setCorrelationId(correlationId);
}
MessageChannel replyChannel = this.resolveReplyChannelFromMessage(result);
if (replyChannel == null) {
replyChannel = this.resolveReplyChannelFromMessage(messages.get(0));