To achieve this, you need to first set the channel-adapter auto-startup property to false auto-startup="false" and then using control bus start/stop the adapter
See here control bus example - https://github.com/spring-projects/spring-integration-samples/tree/master/basic/control-bus