camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From polanki <varadaraja.pola...@pimco.com>
Subject Does context with multi ftp routes run with multiple thread?
Date Mon, 02 May 2016 20:29:00 GMT
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.

Mime
View raw message