Spring Integration manually start/stop channel adapter via control bus
Set autoStartup=”false” and either directly start()/stop() them, or use a <control-bus/> (send @myAdapter.start()). Getting a direct reference (autowire etc), depends on the endpoint type. If it’s a polled endpoint, inject a SourcePollingChannelAdapter; message-driven adapters vary, but generally are a MessageProducerSupport or MessagingGatewaySupport. EDIT: Read about the control-bus here. Give the inbound adapter an id attribute. … Read more