[英]Spring Integration File Polling complex structure - subdirectories
我目前正在使用这个项目作为尝试来监听和轮询FS结构中的文件,从中启动Spring Batch作业并将它们写回到另一个文件夹。
不幸的是,据我所知,它只能为每种类型的通道(读,出,失败和处理)定义一个文件夹。 我想为每个通道定义一个父文件夹,并为几个要自动创建并打开扫描仪的子文件夹。
例如:
entrada:
path: /opt/app/inbound/
informantes:
- Bradesco
- Itau
- Caixa
- Banco do Brasil
- Santander
你们对是否以及如何实现有任何暗示吗?
我在这里看到了此链接,但是我无法弄清楚如何使它适应该解决方案。
任何帮助深表感谢!
最好的问候,恩里科
您是否在Spring Integration中看到RecursiveDirectoryScanner
?
* The {@link DefaultDirectoryScanner} extension which walks through the directory tree
* using {@link Files#walk(Path, int, FileVisitOption...)}.
* <p>
* By default this class visits all levels of the file tree without any {@link FileVisitOption}s.
您可以通过特定的filter
(例如RegexPatternFileListFilter
确定要接受什么文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.