1

キャメルを使用してフォルダーからフォルダーアプリケーションへの単純なコピーを作成したい:

  <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
  <route>
    <from uri="file:src/data?noop=true"/>
    <to uri="file:src/data/new"/>
  </route>
  </camelContext>

5秒ごとにファイルをコピーするためにクォーツを追加したかった。

私はこのようなものを見つけました:

<bean id="quartz" class="org.apache.camel.component.quartz.QuartzComponent">
    <property name="startDelayedSeconds" value="5"/>
</bean>

しかし、私の例ではそれをどのように使用するかわかりません。

助けてください

4

1 に答える 1

2

石英を使用する必要はありません。次のように変更するだけです: file:src/data?noop=true&consumer.delay=5000

于 2012-03-06T06:18:07.750 に答える