I have the following structure.
<int:publish-subscribe-channel id="updateProjectRequest" />
<int:channel id="aggregate-project"/>
<int:service-activator input-channel="updateProjectRequest" output-channel="aggregate-project" ref="updateProjectResponseHandler" method="createFolder"/>
<int:service-activator input-channel="updateProjectRequest" output-channel="aggregate-project" ref="updateProjectResponseHandler" method="createRepo"/>
<int:aggregator input-channel="aggregate-project" ref="projectAggregator">
Below is my Aggregator class.
@Component("projectAggregator")
public class ProjectAggregator {
@Aggregator
public boolean aggregatingMethod(List<Map<String, List<Project>>> items) {
}
@ReleaseStrategy
public boolean releaseChecker(List<Message<?>> messages) {
}
@CorrelationStrategy
public Map<String, List<Project>> correlateBy(Map<String, List<Project>> item) {
return item;
}
The problem is that I print the message length in the @ReleaseStrategy method, it always remains 1. According to my information, it should increase. Can you please help me in detecting errors with the above code.
source
share