camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AbhishekSamuel <abhisheksamuelr...@gmail.com>
Subject FTP Concurrency - Single threaded or not
Date Thu, 18 Apr 2013 15:21:58 GMT
Hi,

Am aware that the ftp component does not support concurrency, that is
multiple files cannot be downloaded at the same time, as it is single
threaded. So does adding the threads method after the ftp comonent have no
effect ?

For example while configuring a route like below

from(ftp Source).routeId("name").threads(3).to(destination).bean().end()

if i have 10 files at the ftp location, i understand each one will be picked
one at a time, but is it going to remain a single thread right up to the end
for each file picked up ? I put thread sleep function in the bean method for
the first file picked up.. but the next file is not being picked up until
the first file is completely processed. 

So when we say it is single threaded, does it mean from start to finish of
the route ? If not, could you please help me understand where i am making
the mistake ?


Thanks 
Abhishek Samuel

Could you please help me to understand whats going on in the background ?
and if there is anyways o








--
View this message in context: http://camel.465427.n5.nabble.com/FTP-Concurrency-Single-threaded-or-not-tp5731087.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message