You can start/stop the inbound adapters/gateways using JMX or the <control-bus/> by sending '@adapterId.start()' or '@adapterId.stop()'.
For multiple instances you'd have to control the adapter on each instance.
We demonstrated some clustering techniques at SpringOne; the demo code is here https://github.com/garyrussell/sprin...ration-ha-demo.
For a non-single source cluster (where all the instances are competing consumers), the cluster controller has an MBean operation pauseAll() which can be used to stop the inbound adapter on each instance; it is not instantaneous however, it depends how often the instances are configured to check their state. Probably only worth going that route if you have many instances and can't use some other management technique to stop the adapter on each instance.
Last edited by Gary Russell; Jan 5th, 2012 at 02:49 PM.
Gary P. Russell
Spring Integration Team
SpringSource, a division of VMware