我使用文件组件作为
file:\\orderLocations
读取消息。 在 UNIX/Linux 环境中部署我的 Camel 路由应用程序。 部署时,每个轮询都会给出此消息
Cannot poll as directory does not exists or its not a directory: /orderLocations
虽然我看到一个带有名称的文件夹
\orderLocations
已创建。但是,它不会从那里轮询消息。
请指导UNIX/LINUX环境下文件组件的正确使用方法
最佳答案
您可以在camel中使用spring DSL,如下所示,适用于各自的操作系统
适用于 Linux/Unix
<from uri="file:/user/tempdir?delete=true"/>
对于 Windows
<from uri="file://user/tempdir?delete=true"/>
关于java - Apache Camel : File Component in Linux environment; Polling Fails,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30332671/