如何在弹簧集成中实现分离器 - 聚合器的并行性?

时间:2015-06-23 16:12:37

标签: spring-integration

我有一个休息电话来做内部分路器然后聚合。我打算为这个休息电话实现并行性。所以我按照link介绍了任务执行器。现在并行工作,但有时它工作,有时不工作。猜测聚合器不是在等待所有线程完成。确切地说不确定问题。你能帮帮我吗?

    <int:enricher ipChann="som" opCahnnel="inputChannel" />

    <int:splitter ipchan="inputChannel" opChannel="opchannel" ref="customersplitter" /> 

    <int:channel id="opchannel" >
        <int:dispatcher task-executor="exec" />
    </int:channel>

    <task:executor id="exec" pool-size="4" queue-capacity="10"/>

    <int:enricher ipChannel="opchannel" opChannel="aggregatorChan"></int:enricher>

    <int:aggregator ipChann="aggregatorChan"  />

为简单起见,我没有扩展更丰富,但流程是相同的。

0 个答案:

没有答案
相关问题