开发者

Where do all these messages come from?

This configuration works fine, but inbound-channel-adapter which 开发者_JAVA百科is supposed to poll every 15 secs is running continously. Does anyone have an idea what I'm doning wrong?

<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"/>


A poller will by default pick up all the messages from the channel or source each poll. You can tweak this with the max-messages-per-poll attribute. If you set that to 1 you will see the behavior you expect.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜