How does one pass multiple files through a pojo that fetches them and then to a file component, and to a ftp in one route? I've been trying to use a Map but not to sure what the body should have for key name, what should GetFiles do to pass on multiple files in below example? If a map should be returned what keys should that map hold?
from("mock:start")
.to(GetFiles.class)
.to("file:transfer/outbound")
.to("sftp:{{sftp_uri}}");
Why not just drop the files into a folder, have one route without any Java?
from("file:///inbound").multicast().to("file:outbound/", "sftp://");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.