【发布时间】:2018-07-04 16:06:33
【问题描述】:
我是 Apache camel-aws 的初学者。我正在编写一个程序来使用 apache camel 将文件从一个 aws s3 存储桶传输到另一个存储桶。我现在想记录从 s3 中选取的文件/对象名称。你能帮我做同样的事情吗?下面是我的代码sn-p。 ${file:name} 适用于 camel FTP 组件,想了解它在 aws 中的等价物。
from("aws-s3://sourceBucket?amazonS3Client=#amazonS3Client")
.log("The following file has been picked for file transfer : ${file:name}")
.routeId("Test My Files").log("Building Destination URI for fie transfer")
.to("aws-s3://destinationBucket?amazonS3Client=#amazonS3Client")
.log("The following file transfer has completed : ${file:name}");
亲切的问候, 卡西夫
【问题讨论】:
标签: amazon-s3 apache-camel apache-camel-aws