Using spring-integration-sftp, what is the recommended way to create an arbitrary number of inbound-channel-adapter objects? My application needs to monitor multiple remote directories (1 to n), which will not be known until runtime.
1 Answers
1
votes
The easiest way with current technology is to use the Java DSL "Dynamic and runtime Integration Flows".
Each flow is programmatically registered with the IntegrationFlowContext
.
Also see my answer to this question and its links for other techniques.