This Camel route should start reading files from a Ftp-Server:
Now, I don't want this to start automatically, or polling, or similar. This should be started manually (externally, JMX). I have other routes which are being triggered via a MBean, and I use for that the direct label:
Which is the best way to do the same and starting as the first action with an FTP-read functionality? Something like:
from("direct:myRoute2") .from("sftp://[email protected]") .autoStartup(false)
? This is not working. After the manual-JMX-trigger no file is being ftp-read. I guess the two "from" starting the route work in parallel and therefore starting the "direct:myRoute2" does not trigger the FTP.
Kann I put the FTP-URI in another component, other than "from", to start the FTP-Read after the from("direct:myRoute2")?
BTW: This is an individual route, with no connection with other routes.