camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: FTP: Try login once and disconnect if failure.
Date Thu, 22 Jul 2010 04:42:04 GMT
On Wed, Jul 21, 2010 at 4:28 PM, Andreas Asmuss <> wrote:
> Hi
> I tried stepping through the process of connecting with a bad password, and
> I can see that it is intentional to try a few times with a new FTPClient
> instance to connect before giving up - as I'm trying to limit the
> loginattempts to 1 and then abort this is a little annoying :)
> When using the consumer to log in there will always be two login attempts
> before an exception is thrown back to the caller.
> When using the producer there will always be 3 attempts before the exception
> is thrown back to the caller.

Yeah we will revisit this in 2.5. That code with re-connect attempts
was to fix the issue about self healing a connection.
This was improved in 2.4, so I do not think we need the 3-reconnect by
default now.

> I don't know if this use case us too unusual or if an option to throw only
> attempt login once before throwing the exception could be introduced?
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Apache Camel Committer

Author of Camel in Action:
Open Source Integration:

View raw message