Hi Claus,

thanks for your response.

1) that means following is possible?
 - Route A:  
from("ftp://server1/directory1/?username=user&password=RAW(pwd)").to("direct:consumer");
 - Route B:  
from("ftp://server1/directory1/?username=user&password=RAW(pwd)").to("direct:consumer");
We have some issues with different routes consuming many files parallel from 
one server and I thought the single threaded behavior could be the cause.
One Isssue is Route B is hanging without any indication.

2) my hope was you have a simple short cut (:

Regards Robin
-----Ursprüngliche Nachricht-----
Von: Claus Ibsen [mailto:[email protected]] 
Gesendet: Mittwoch, 5. März 2014 11:30
An: [email protected]
Betreff: Re: Howto find similar ftp endpoints by routeId

Hi

1)
Each consumer created by the endpoint is single threaded, and has their own 
FtpClient which they use for communicating with the FTP server. And the 
FtpClient does not support concurrency (eg only download a single file at a 
time etc.)

But you can have mutliple routes from the same ftp endpoint, and therefore 
create multiple consumers, which their own FtpClient instance. And therefore 
"simulate concurrency.".

What people maybe would like to do is to have 1 route, but say
?concurrentConsumers=5 to be able to download multiple files at the same time. 
This is currently not supported.

2)
There is API on CamelContext to get all the routes, and then you can get which 
endpoint they have as input.



On Tue, Mar 4, 2014 at 5:35 PM,  <[email protected]> wrote:
> Hi Claus,
>
> regarding to this i have some questions:
>
> 1. What does endpoint in this case mean?
>     - the full uri
>     - or only the server address
> 2. is there a simple way in java to find any route in context, which is 
> active using the same endpoint as the routeId which user wants to start?
>    - in our case there are many consumer routes, which will be started by  
> ejb timer by routeId. My Idea is now, to look for any active route using the 
> same endpoint and wait until they are finished.
>
> Regards Robin
>
> -----Ursprüngliche Nachricht-----
> Von: Claus Ibsen [mailto:[email protected]]
> Gesendet: Donnerstag, 20. Februar 2014 16:46
> An: [email protected]
> Betreff: Re: Multiple connections Camel FTP Client
>
> The ftp consumer in Camel is single threaded.
>
> There is a information box at this page that tells that
> http://camel.apache.org/ftp2
>
>



--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen Make your Camel 
applications look hawt, try: http://hawt.io

Reply via email to