You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by polanki <va...@pimco.com> on 2016/05/02 22:29:00 UTC
Does context with multi ftp routes run with multiple thread?
If Camel context is started with multiple routes then does it run with
multithreads? If so how many threads will be created? can we set number of
threads?
Does thread pool created for each camel context or for each Route Builder in
the camel context?
below is the sample code
final CamelContext camelContext = new DefaultCamelContext();
try {
camelContext.addRoutes(
new RouteBuilder() {
@Override
public void configure() throws Exception {
from("ftp://prodpmst11.com/TEST2/?username=AAAA&password=BBBB"
+
"&initialDelay=1s&delay=5s&backoffMultiplier=6&backoffIdleThreshold=5"
+ "&delete=true&greedy=true").
to("file:C:\\personal\\input\\fold");
from("ftp://prodpmst22.com/TEST3/?username=XXXX&password=YYYYY"
+
"&initialDelay=1s&delay=5s&backoffMultiplier=6&backoffIdleThreshold=5"
+ "&delete=true&greedy=true").
to("file:C:\\personal\\input\\fold1");
}
});
camelContext.start();
Thread.sleep(100000);
camelContext.stop();
--
View this message in context: http://camel.465427.n5.nabble.com/Does-context-with-multi-ftp-routes-run-with-multiple-thread-tp5782089.html
Sent from the Camel - Users mailing list archive at Nabble.com.