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.
精彩评论