Hi,
I'm trying to use JMX to change my polling interval. I have the following poller configuration:
I created a class I'm exposing as an MBean:Code:<int:poller fixed-rate="60000" max-messages-per-poll="10" id="defaultPoller" default="true"> <int:transactional transaction-manager="transactionManager" /> </int:poller>
The app starts OK (no problem with the autowiring) and I'm able to set the initialDelay over over jmx, but it doesn't seem to help. Is this not supposed to work? The initialDelay in PeriodicTrigger is volatile, which suggest it should be able to cope with changes?Code:public class IntegrationController{ @Autowired private PeriodicTrigger periodicTrigger; @ManagedOperation public void setPollingInterval(long seconds){ periodicTrigger.setInitialDelay(seconds*1000); }


Reply With Quote
