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
Post a Comment