Hi all,
Having defined a channel adapter as:
I wonder why I cannot modify the polling rate on runtime, as follows:Code:<int:channel id="target"> <int:queue /> </int:channel> <int-jdbc:inbound-channel-adapter id="adapter" channel="target" query="${int.poll.query}" update="${int.update.query}" data-source="mock-datasource"> <int:poller fixed-rate="5000"/> </int-jdbc:inbound-channel-adapter>
When i debug this solution, I can see that the adapter has this new trigger attached to it, however the polling rate remains unchanged (every 5 secs). I tried also to stop() and start() the adapter, with similar luck.Code:SourcePollingChannelAdapter adapter = applicationContext.getBean("adapter",SourcePollingChannelAdapter.class); adapter.setTrigger(new PeriodicTrigger(1000));
Anyone can point me out what I am doing wrong?
Thanks


Reply With Quote
