簡體   English   中英

Apache Camel-Quartz:是否可以在一次迭代中傳輸多個文件

[英]Apache Camel-Quartz : Is it possible to transfer multiple files in a single iteration

我有以下駱駝配置

from("quartz2://myscheduler?cron=0+34/1+17+?+*+TUE&trigger.repeatCount=1")
.pollEnrich("sftp://user@host1/path/DirTest?recursive=true&password=pwd&move=.camel&moveFailed=.error")
.to("sftp://user@host2/DirTest?password=pwd&passiveMode=true&maximumReconnectAtrempts=3");

使用此配置,駱駝在給定的時間間隔(在這種情況下為1分鍾)內僅傳輸一個文件。 是否可以在單個時間間隔內傳輸多個文件?

提前致謝。

不,它看起來不像poll-enrich支持多個文件。 您需要使用其他組件(例如控制總線)來執行此操作。 看到這里: https : //qnalist.com/questions/4843799/pollenrich-all-the-files-in-a-directory

如果要計划將所有新文件從一個FTP服務器移動到另一服務器,則可以直接在FTP上使用cron計划程序,因此

from ftp
  to ftp

此處有更多詳細信息: http : //www.davsclaus.com/2013/08/apache-camel-212-even-easier-cron.html

我想這里對此有一些疑問,您可以嘗試搜索。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

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