I can't use the same endpoint URI if the files to be deployed have different 
names.
Pooled FTP clients still leave opened the issue of having to close the 
connection each time.

-----Original Message-----
From: Claus Ibsen [mailto:[email protected]] 
Sent: martedì 28 settembre 2010 12:24
To: [email protected]
Subject: Re: FTP creating connections for every file name in the uri

On Tue, Sep 28, 2010 at 12:06 PM, Marco Crivellaro <[email protected]> 
wrote:
>
> When the route is used to deliver several files (fileName option) via 
> FTP a new connection to the given FTP server is created for each file 
> and left opened unless we set the disconnect option to true.
>
> In my honest opinion this is leading to a lot of time being spent to 
> connect and disconnect each time whilst the FTP connection can be left 
> opened and simply deploy the new file.

The ftp client is pooled and Camel grab it from a pool which has a size of 10 
per endpoint AFAIR.
It will reuse the ftp client from the pool if the endpoint uri match.
So use the same endpoint uri and Camel re-uses the pooled ftp client if its 
free.



> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/FTP-creating-connections-for-every-f
> ile-name-in-the-uri-tp478938p2856470.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



--
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/ Open Source 
Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

Reply via email to