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.
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..
So the solution I found is using the scenario #1, but stop and restart the route.
exchange.getContext().stopRoute(routeId);
exchange.getContext().startRoute(routeId);