How to get Camel FTP to fetch only once on demand

后端 未结 2 1369
半阙折子戏
半阙折子戏 2021-01-17 04:23

I\'m fairly new to Camel.

I\'ve been trying to get Camel to fetch a single file via FTP only once, on demand. I couldn\'t get it to work. Here is what I\'ve tried.

2条回答
  •  情深已故
    2021-01-17 04:34

    You can use a CountDownLatch to stop the route from a route as specified here - http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html. It works like charm for me..

提交回复
热议问题