【问题标题】:Where do all these messages come from?所有这些消息来自哪里?
【发布时间】:2011-02-18 17:35:39
【问题描述】:

此配置工作正常,但应该每 15 秒轮询一次的入站通道适配器正在连续运行。有谁知道我做错了什么?

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

【问题讨论】:

    标签: java spring-integration eai


    【解决方案1】:

    默认情况下,轮询器会从频道或每次轮询中获取所有消息。您可以使用 max-messages-per-poll 属性对此进行调整。如果您将其设置为 1,您将看到您期望的行为。

    【讨论】:

    • @iwein 非常感谢,很简单
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-07-11
    • 2012-08-08
    • 1970-01-01
    • 2011-07-11
    • 2019-07-14
    • 2014-01-28
    • 1970-01-01
    相关资源
    最近更新 更多