Apache Camel FTP - How to start the route manually -


this camel route should start reading files ftp-server:

from("sftp://user@...") 

now, don't want start automatically, or polling, or similar. should started manually (externally, jmx). have other routes being triggered via mbean, , use direct label:

from("direct:myroute1") 

which best way same , starting first action ftp-read functionality? like:

from("direct:myroute2") .from("sftp://user@...") .autostartup(false) 

? not working. after manual-jmx-trigger no file being ftp-read. guess 2 "from" starting route work in parallel , therefore starting "direct:myroute2" not trigger ftp.

kann put ftp-uri in component, other "from", start ftp-read after from("direct:myroute2")?

btw: individual route, no connection other routes.

thanks

what need poll enrich:

from("direct:myroute2") .pollenrich("ftp://localhost") .to("mock:result"); 

now trigger direct (no matter send it) , ftp consumer starts.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -