Re: FTP creating connections for every file name in the uri

2010-05-18 Thread Claus Ibsen
On Tue, May 18, 2010 at 6:55 PM, Srini97 wrote: > > Hi, > > We observed that when we are using the FTP Endpoint for delivery,  it is > creating a connection for filename (even it is for the same user ) and it is > utilising maximum pool and connection left there and finally getting error > saying

Re: FTP creating connections for every file name in the uri

2010-09-20 Thread Marco Crivellaro
Is there a chance you change the way FTP connections are created? In the case you are producing many files for always the same FTP endpoint you are forced to set the disconnect=true which is leading to client application to "connect, deploy, disconnect" each time which is not ideal. -- View this

Re: FTP creating connections for every file name in the uri

2010-09-28 Thread Marco Crivellaro
Do you prefer me opening a new conversation/ticket? -- View this message in context: http://camel.465427.n5.nabble.com/FTP-creating-connections-for-every-file-name-in-the-uri-tp478938p2856347.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: FTP creating connections for every file name in the uri

2010-09-28 Thread Claus Ibsen
On Tue, Sep 28, 2010 at 9:31 AM, Marco Crivellaro wrote: > > Do you prefer me opening a new conversation/ticket? Can you provide more details what your problem is? Its not clear to me. > -- > View this message in context: > http://camel.465427.n5.nabble.com/FTP-creating-connections-for-every-f

Re: FTP creating connections for every file name in the uri

2010-09-28 Thread Marco Crivellaro
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

Re: FTP creating connections for every file name in the uri

2010-09-28 Thread Claus Ibsen
On Tue, Sep 28, 2010 at 12:06 PM, Marco Crivellaro 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 i

RE: FTP creating connections for every file name in the uri

2010-09-28 Thread Marco Crivellaro
24 To: users@camel.apache.org Subject: Re: FTP creating connections for every file name in the uri On Tue, Sep 28, 2010 at 12:06 PM, Marco Crivellaro wrote: > > When the route is used to deliver several files (fileName option) via > FTP a new connection to the given FTP server is created

Re: FTP creating connections for every file name in the uri

2010-09-28 Thread Claus Ibsen
nstead of the uri. > > -Original Message- > From: Claus Ibsen [mailto:claus.ib...@gmail.com] > Sent: martedì 28 settembre 2010 12:24 > To: users@camel.apache.org > Subject: Re: FTP creating connections for every file name in the uri > > On Tue, Sep 28, 2010 at 12:06 P

Re: FTP creating connections for every file name in the uri

2010-09-29 Thread Marco Crivellaro
As I am using a recipientList and it might happen not all the endpoints will receive the content with the same filename do you think I can use an interceptor interceptSendToEndpoint and remove the filename option from URI setting the filename in the header? Or is at this time the endpoint already

Re: FTP creating connections for every file name in the uri

2010-09-29 Thread Claus Ibsen
On Wed, Sep 29, 2010 at 11:44 AM, Marco Crivellaro wrote: > > As I am using a recipientList and it might happen not all the endpoints will > receive the content with the same filename do you think I can use an > interceptor interceptSendToEndpoint and remove the filename option from URI > setting

Re: FTP creating connections for every file name in the uri

2010-09-29 Thread Marco Crivellaro
Using interceptSendToEndpoint I've tried setting the header Exchange.INTERCEPTED_ENDPOINT to the new endpoint URI (without the fileName) and setting the filename as Exchange.FILE_NAME. However the enpoint parameters being used remain the original one. this is the my interceptSendToEndpoint: i

Re: FTP creating connections for every file name in the uri

2010-09-29 Thread Claus Ibsen
Hi Just skip sending to the original endpoint and use a producer template to send to the uri you create yourself. Just remove the filename parameter. You can use reg exp or String concat stuff for that. Or Camel has some API for URI in the util package. That makes it easier to construct the uri w

Re: FTP creating connections for every file name in the uri

2010-09-29 Thread Marco Crivellaro
Thanks I'll try in that way! can you link me to the ticket you created about the fix at FTP component level? just want to keep an eye on it looking forward for the enhancement to come -- View this message in context: http://camel.465427.n5.nabble.com/FTP-creating-connections-for-every-file-name

Re: FTP creating connections for every file name in the uri

2010-09-29 Thread Claus Ibsen
On Wed, Sep 29, 2010 at 1:40 PM, Marco Crivellaro wrote: > > Thanks I'll try in that way! > > can you link me to the ticket you created about the fix at FTP component > level? > just want to keep an eye on it looking forward for the enhancement to come https://issues.apache.org/activemq/browse/CA

Re: FTP creating connections for every file name in the uri

2015-06-10 Thread rkjoshi2
Setting Filename in header works, but what if I need to write contents to temp file first and then rename it to original file name? Can I set temp file in header as well? I did not find that option yet but whenever I use temp file name, I am running out ftp connection very quickly. Any pointer i