문제

This configuration works fine, but inbound-channel-adapter which 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top