How do we disable a File Poller in production? This is a very common scenario, where if we encounter an issue, we need to switch it off at runtime.
Is there any programmatic access available to the inbound channel adapter?
How do we disable a File Poller in production? This is a very common scenario, where if we encounter an issue, we need to switch it off at runtime.
Is there any programmatic access available to the inbound channel adapter?
you can execute stop() method on it since the adapter itself is an instance of Lifecycle
Oleg Zhurakousky
Spring Integration team
http://twitter.com/z_oleg
http://blog.springsource.com/author/ozhurakousky/
These methods are also exposed as MBean operations if you add
to your context; you also needCode:<int-jmx:mbean-export/>
You can then invoke the operations using JMX; for example with VisualVM, or JConsole.Code:<context:mbean-server/>
Finally, you can use an <int:control-bus/> to send a message to the adapter '@adapterId.stop()'.
Gary P. Russell
Spring Integration Team
SpringSource, a division of VMware