簡體   English   中英

Spring Integration File Polling復雜結構-子目錄

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM