Where do all these messages come from?

This configuration works fine, but the inbound adapter channel, which must poll every 15 seconds, is running continuously. Does anyone have an idea what I am doing 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"/>

      

+2


a source to share


1 answer


Pollers will by default collect all messages from the channel or source of each poll. You can customize it using the attribute max-messages-per-poll

. If you set the value to 1, you will see the expected behavior.



+3


a source







All Articles