How to get Camel FTP to fetch only once on demand

后端 未结 2 1360
半阙折子戏
半阙折子戏 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条回答
  •  萌比男神i
    2021-01-17 04:48

    So the solution I found is using the scenario #1, but stop and restart the route.

    exchange.getContext().stopRoute(routeId);
    exchange.getContext().startRoute(routeId);
    

提交回复
热议问题