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.
Asked
Active
Viewed 1,213 times
1 Answers
2
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.

Gary Russell
- 166,535
- 14
- 146
- 179
-
It's very sad that all the links to the docs on various answers are now rendered useless with a 404 – ark Apr 25 '19 at 21:23
-
1This is true; but the documentation creation technology has changed and the anchors are different. You can always go to the [root URL](https://docs.spring.io/spring-integration/reference/html/) (remove the anchor) and then search the table of contents for the subject matter. We do fix the links in these answers when people point them out. – Gary Russell Apr 25 '19 at 21:58