此配置工作正常,但这是应该每15秒轮询入站通道适配器不断将运行。有没有人有一个想法是什么,我doning错了?

<si:channel id="msgChannel" />

    <si:inbound-channel-adapter ref="jdbcInputAdapter"
        method="fetchData" channel="msgChannel">
        <si:poller>
            <si:interval-trigger interval="15000" />
        </si:poller>
    </si:inbound-channel-adapter>

    <si:outbound-channel-adapter ref="shouter"  method="shout" channel="msgChannel"/>
有帮助吗?

解决方案

一个轮询器将默认拿起所有从通道或源中的每个轮询的消息。你可以用max-messages-per-poll属性调整这一点。如果设置为1,您将看到您所期望的行为。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top