- Previous thread: FileConsumer move a file to wrong destination.
- Next thread: camel-spring:test-jar missing from snapshot releases?
- Threads sorted by date: apachecamel 201001
Hi,
I am creating a simple flow uploading files using FTP and FTPs.
Here is the process definition:
I drop a file in a folder, Camel picks it up and uploads it to the
server. Everything works perfectly.
My problem is that I would like to disconnect from the FTP server
(terminate session) every time a file is uploaded. It seems though that
the connection to the FTP server is kept open. Thus, if I drop a new
file into my monitored folder the same FTP session is reused. I would
like that not to happen.
How can I configure my camel process to disconnect from the FTP Server?
I did not find any information on this.
Thanks a lot for your help!
Regards
Gunnar
I am creating a simple flow uploading files using FTP and FTPs.
Here is the process definition:
I drop a file in a folder, Camel picks it up and uploads it to the
server. Everything works perfectly.
My problem is that I would like to disconnect from the FTP server
(terminate session) every time a file is uploaded. It seems though that
the connection to the FTP server is kept open. Thus, if I drop a new
file into my monitored folder the same FTP session is reused. I would
like that not to happen.
How can I configure my camel process to disconnect from the FTP Server?
I did not find any information on this.
Thanks a lot for your help!
Regards
Gunnar
Hey Gunnar,
you are right. At present, we disconnect only after a failed write/upload
from the server. Currently you have no choice to configure a session
disconnect after a write.
@Claus: Should Gunnar open a JIRA ticket for that or won't we change this?
Regards,
Christian
On Thu, Jan 21, 2010 at 6:46 PM, Gunnar Hillert wrote:
> Hi,
>
> I am creating a simple flow uploading files using FTP and FTPs.
>
> Here is the process definition:
>
> I drop a file in a folder, Camel picks it up and uploads it to the server.
> Everything works perfectly.
>
> My problem is that I would like to disconnect from the FTP server
> (terminate session) every time a file is uploaded. It seems though that the
> connection to the FTP server is kept open. Thus, if I drop a new file into
> my monitored folder the same FTP session is reused. I would like that not to
> happen.
>
> How can I configure my camel process to disconnect from the FTP Server? I
> did not find any information on this.
>
> Thanks a lot for your help!
>
> Regards
>
> Gunnar
>
you are right. At present, we disconnect only after a failed write/upload
from the server. Currently you have no choice to configure a session
disconnect after a write.
@Claus: Should Gunnar open a JIRA ticket for that or won't we change this?
Regards,
Christian
On Thu, Jan 21, 2010 at 6:46 PM, Gunnar Hillert wrote:
> Hi,
>
> I am creating a simple flow uploading files using FTP and FTPs.
>
> Here is the process definition:
>
> I drop a file in a folder, Camel picks it up and uploads it to the server.
> Everything works perfectly.
>
> My problem is that I would like to disconnect from the FTP server
> (terminate session) every time a file is uploaded. It seems though that the
> connection to the FTP server is kept open. Thus, if I drop a new file into
> my monitored folder the same FTP session is reused. I would like that not to
> happen.
>
> How can I configure my camel process to disconnect from the FTP Server? I
> did not find any information on this.
>
> Thanks a lot for your help!
>
> Regards
>
> Gunnar
>
My 2 cents is that it's a worthwhile option to have, many FTP servers
would close the connection on you after a timeout anyway.
On Thu, Jan 21, 2010 at 4:02 PM, Christian M=C3=BCller
wrote:
> Hey Gunnar,
>
> you are right. At present, we disconnect only after a failed write/upload
> from the server. Currently you have no choice to configure a session
> disconnect after a write.
>
> @Claus: Should Gunnar open a JIRA ticket for that or won't we change this=
?
>
> Regards,
> Christian
>
> On Thu, Jan 21, 2010 at 6:46 PM, Gunnar Hillert wrot=
e:
>
>> Hi,
>>
>> I am creating a simple flow uploading files using FTP and FTPs.
>>
>> Here is the process definition:
>>
>> I drop a file in a folder, Camel picks it up and uploads it to the serve=
r.
>> Everything works perfectly.
>>
>> My problem is that I would like to disconnect from the FTP server
>> (terminate session) every time a file is uploaded. It seems though that =
the
>> connection to the FTP server is kept open. Thus, if I drop a new file in=
to
>> my monitored folder the same FTP session is reused. I would like that no=
t to
>> happen.
>>
>> How can I configure my camel process to disconnect from the FTP Server? =
I
>> did not find any information on this.
>>
>> Thanks a lot for your help!
>>
>> Regards
>>
>> Gunnar
>>
>
would close the connection on you after a timeout anyway.
On Thu, Jan 21, 2010 at 4:02 PM, Christian M=C3=BCller
wrote:
> Hey Gunnar,
>
> you are right. At present, we disconnect only after a failed write/upload
> from the server. Currently you have no choice to configure a session
> disconnect after a write.
>
> @Claus: Should Gunnar open a JIRA ticket for that or won't we change this=
?
>
> Regards,
> Christian
>
> On Thu, Jan 21, 2010 at 6:46 PM, Gunnar Hillert wrot=
e:
>
>> Hi,
>>
>> I am creating a simple flow uploading files using FTP and FTPs.
>>
>> Here is the process definition:
>>
>> I drop a file in a folder, Camel picks it up and uploads it to the serve=
r.
>> Everything works perfectly.
>>
>> My problem is that I would like to disconnect from the FTP server
>> (terminate session) every time a file is uploaded. It seems though that =
the
>> connection to the FTP server is kept open. Thus, if I drop a new file in=
to
>> my monitored folder the same FTP session is reused. I would like that no=
t to
>> happen.
>>
>> How can I configure my camel process to disconnect from the FTP Server? =
I
>> did not find any information on this.
>>
>> Thanks a lot for your help!
>>
>> Regards
>>
>> Gunnar
>>
>
On Thu, Jan 21, 2010 at 10:02 PM, Christian M=FCller
wrote:
> Hey Gunnar,
>
> you are right. At present, we disconnect only after a failed write/upload
> from the server. Currently you have no choice to configure a session
> disconnect after a write.
>
> @Claus: Should Gunnar open a JIRA ticket for that or won't we change this=
?
>
+1 to open a ticket in JIRA.
> Regards,
> Christian
>
> On Thu, Jan 21, 2010 at 6:46 PM, Gunnar Hillert wrot=
e:
>
>> Hi,
>>
>> I am creating a simple flow uploading files using FTP and FTPs.
>>
>> Here is the process definition:
>>
>> I drop a file in a folder, Camel picks it up and uploads it to the serve=
r.
>> Everything works perfectly.
>>
>> My problem is that I would like to disconnect from the FTP server
>> (terminate session) every time a file is uploaded. It seems though that =
the
>> connection to the FTP server is kept open. Thus, if I drop a new file in=
to
>> my monitored folder the same FTP session is reused. I would like that no=
t to
>> happen.
>>
>> How can I configure my camel process to disconnect from the FTP Server? =
I
>> did not find any information on this.
>>
>> Thanks a lot for your help!
>>
>> Regards
>>
>> Gunnar
>>
>
--=20
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
wrote:
> Hey Gunnar,
>
> you are right. At present, we disconnect only after a failed write/upload
> from the server. Currently you have no choice to configure a session
> disconnect after a write.
>
> @Claus: Should Gunnar open a JIRA ticket for that or won't we change this=
?
>
+1 to open a ticket in JIRA.
> Regards,
> Christian
>
> On Thu, Jan 21, 2010 at 6:46 PM, Gunnar Hillert wrot=
e:
>
>> Hi,
>>
>> I am creating a simple flow uploading files using FTP and FTPs.
>>
>> Here is the process definition:
>>
>> I drop a file in a folder, Camel picks it up and uploads it to the serve=
r.
>> Everything works perfectly.
>>
>> My problem is that I would like to disconnect from the FTP server
>> (terminate session) every time a file is uploaded. It seems though that =
the
>> connection to the FTP server is kept open. Thus, if I drop a new file in=
to
>> my monitored folder the same FTP session is reused. I would like that no=
t to
>> happen.
>>
>> How can I configure my camel process to disconnect from the FTP Server? =
I
>> did not find any information on this.
>>
>> Thanks a lot for your help!
>>
>> Regards
>>
>> Gunnar
>>
>
--=20
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
Hi
I have created the ticket
https://issues.apache.org/activemq/browse/CAMEL-2391
And also implemented this new feature.
There is a new option disconnect=3Dtrue which will disconnect from the
remote ftp server right after use.
It can be used on both the consumer or producer side.
Will be in the next Camel 2.2 release, which is due next month.
On Fri, Jan 22, 2010 at 6:23 AM, Claus Ibsen wrote:
> On Thu, Jan 21, 2010 at 10:02 PM, Christian M=FCller
> wrote:
>> Hey Gunnar,
>>
>> you are right. At present, we disconnect only after a failed write/uploa=
d
>> from the server. Currently you have no choice to configure a session
>> disconnect after a write.
>>
>> @Claus: Should Gunnar open a JIRA ticket for that or won't we change thi=
s?
>>
>
> +1 to open a ticket in JIRA.
>
>
>> Regards,
>> Christian
>>
>> On Thu, Jan 21, 2010 at 6:46 PM, Gunnar Hillert wro=
te:
>>
>>> Hi,
>>>
>>> I am creating a simple flow uploading files using FTP and FTPs.
>>>
>>> Here is the process definition:
>>>
>>> I drop a file in a folder, Camel picks it up and uploads it to the serv=
er.
>>> Everything works perfectly.
>>>
>>> My problem is that I would like to disconnect from the FTP server
>>> (terminate session) every time a file is uploaded. It seems though that=
the
>>> connection to the FTP server is kept open. Thus, if I drop a new file i=
nto
>>> my monitored folder the same FTP session is reused. I would like that n=
ot to
>>> happen.
>>>
>>> How can I configure my camel process to disconnect from the FTP Server?=
I
>>> did not find any information on this.
>>>
>>> Thanks a lot for your help!
>>>
>>> Regards
>>>
>>> Gunnar
>>>
>>
>
>
>
> --
> 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
>
--=20
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
I have created the ticket
https://issues.apache.org/activemq/browse/CAMEL-2391
And also implemented this new feature.
There is a new option disconnect=3Dtrue which will disconnect from the
remote ftp server right after use.
It can be used on both the consumer or producer side.
Will be in the next Camel 2.2 release, which is due next month.
On Fri, Jan 22, 2010 at 6:23 AM, Claus Ibsen wrote:
> On Thu, Jan 21, 2010 at 10:02 PM, Christian M=FCller
> wrote:
>> Hey Gunnar,
>>
>> you are right. At present, we disconnect only after a failed write/uploa=
d
>> from the server. Currently you have no choice to configure a session
>> disconnect after a write.
>>
>> @Claus: Should Gunnar open a JIRA ticket for that or won't we change thi=
s?
>>
>
> +1 to open a ticket in JIRA.
>
>
>> Regards,
>> Christian
>>
>> On Thu, Jan 21, 2010 at 6:46 PM, Gunnar Hillert wro=
te:
>>
>>> Hi,
>>>
>>> I am creating a simple flow uploading files using FTP and FTPs.
>>>
>>> Here is the process definition:
>>>
>>> I drop a file in a folder, Camel picks it up and uploads it to the serv=
er.
>>> Everything works perfectly.
>>>
>>> My problem is that I would like to disconnect from the FTP server
>>> (terminate session) every time a file is uploaded. It seems though that=
the
>>> connection to the FTP server is kept open. Thus, if I drop a new file i=
nto
>>> my monitored folder the same FTP session is reused. I would like that n=
ot to
>>> happen.
>>>
>>> How can I configure my camel process to disconnect from the FTP Server?=
I
>>> did not find any information on this.
>>>
>>> Thanks a lot for your help!
>>>
>>> Regards
>>>
>>> Gunnar
>>>
>>
>
>
>
> --
> 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
>
--=20
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
Hi everybody,
Thank you all for the light-speed-like response!
Cheers,
Gunnar
Claus Ibsen wrote:
> Hi
>
> I have created the ticket
> https://issues.apache.org/activemq/browse/CAMEL-2391
>
> And also implemented this new feature.
>
> There is a new option disconnect=true which will disconnect from the
> remote ftp server right after use.
> It can be used on both the consumer or producer side.
>
> Will be in the next Camel 2.2 release, which is due next month.
>
> On Fri, Jan 22, 2010 at 6:23 AM, Claus Ibsen wrote:
>
>> On Thu, Jan 21, 2010 at 10:02 PM, Christian M
Thank you all for the light-speed-like response!
Cheers,
Gunnar
Claus Ibsen wrote:
> Hi
>
> I have created the ticket
> https://issues.apache.org/activemq/browse/CAMEL-2391
>
> And also implemented this new feature.
>
> There is a new option disconnect=true which will disconnect from the
> remote ftp server right after use.
> It can be used on both the consumer or producer side.
>
> Will be in the next Camel 2.2 release, which is due next month.
>
> On Fri, Jan 22, 2010 at 6:23 AM, Claus Ibsen wrote:
>
>> On Thu, Jan 21, 2010 at 10:02 PM, Christian M
Related Threads
- [ruby-core:20214] Proposal: deferred blocks - ruby
- [PATCH]: Add double brackets for darwin[912] - gcc
- [LTO][PATCH] Delete temporary ltrans output files - gcc
- sysv/ms_abi attribute fix, part 4, proper initialization of call_used_regs - gcc
- Question regarding Ranges - perl
- [users] FAIL: KDE4.2 and OOo3 - openoffice
- [ruby-core:21018] caller for all threads? - ruby