【问题标题】:Does camel file component read the file from two different loaction?骆驼文件组件是否从两个不同的位置读取文件?
【发布时间】:2015-10-20 20:08:35
【问题描述】:

camel 文件组件是否支持以下配置?

有两个可用的输入文件位置:

例如

  1. D://input1/

  2. C://input2/

如果文件可用,Camel 文件组件应尝试从 (D://input1/) 位置读取。

如果文件在 (D://input1/) 位置不可用,则应从第二个输入文件位置读取。

【问题讨论】:

    标签: apache-camel


    【解决方案1】:

    不,这不支持单个文件使用者,您必须为此创建两条路由。然后您可以使用直接组件链接到公共/共享路由的路由

    from("D://input1").to("direct:shared");
    from("C://input2").to("direct:shared");
    
    from("direct:shared")"....
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-04
      相关资源
      最近更新 更多