349.6. 한 번만 실행

Camel 2.8 사용

라우팅을 시작할 때와 같이 Camel 경로에서 한 번만 메시지를 실행하려고 할 수 있습니다. 이렇게 하려면 다음과 같이 repeatCount 옵션을 사용합니다.

<route>
  <from uri="timer://foo?repeatCount=1"/>
  <to uri="bean:myBean?method=someMethodName"/>
</route>