Hi All,
I have aggregated the messages for fixed time interval in 1.0.4.RELEASE and it is working fine.
Now I am trying to migrate SI version to 2.0.1.RELEASE. I Did the required changes for my aggregator. However it is not working as expected.
My sample code in 2.0.1.RELEASE is,
Here my intention is aggregation needs to happen for every 1 sec and it polls for every 3 secs.
//Aggregator method<si:channel id="aggregateOutChannel"/>
<si:aggregator id="updatesAggregator"
input-channel="orderRequestChannel"
output-channel="aggregateOutChannel"
ref="updatesAggregatorBean"
method="groupMessages"
release-strategy="groupReleaseStrategy"
release-strategy-method="canRelease"
correlation-strategy="groupCorrelationBean"
correlation-strategy-method="correlatingMessages"
send-timeout="1000" send-partial-result-on-expiry="true">
<si: poller >
<si:interval-trigger interval="3000"/>
</si: poller>
</si:aggregator>
public List<OrderRequestDTO> groupMessages(List<OrderRequestDTO> orderList) {
log.info("UpdatesAggregatorBean.groupMessages orderList = "+orderList);
return orderList;
}
//Correlation strategy method
public Object correlatingMessages(OrderRequestDTO orderList) {
log.info(orderList+"");
return "NO_GROUPING";
}
//Release strategy method
//Never release until the timeout
public boolean canRelease(List<OrderRequestDTO> orderList) {
return false;
}
Can somebody help me on this.
Thanks in Advance
Mohan Maligireddy


Reply With Quote
oller>