[ https://issues.apache.org/activemq/browse/CAMEL-2979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60870#action_60870 ]
Andreas Asmuss commented on CAMEL-2979: --------------------------------------- Hi I've tested this and it works. When logging in with incorrect user/pass it only polls once and skips, which is nice. However could it be possible for the component to throw an exception as I would like to catch this exception and make sure that no further polls are done to the ftp (ie shut down the route/application). > FtpComponent: If login fails and disconnect=true another connection is opened. > ------------------------------------------------------------------------------ > > Key: CAMEL-2979 > URL: https://issues.apache.org/activemq/browse/CAMEL-2979 > Project: Apache Camel > Issue Type: Bug > Components: camel-ftp > Affects Versions: 2.4.0 > Reporter: Andreas Asmuss > Assignee: Claus Ibsen > Priority: Minor > Fix For: 2.5.0 > > > In a route such as below a second connection to the ftp server is opened if > the login fails. > <route> > <from > uri="ftp:localhost/inbox/?username=usr&password=pwd&disconnect=true&consumer.delay=60s&maximumReconnectAttempts=0" > /> > <to uri="file:test_data" /> > </route> > Further description: > http://camel.465427.n5.nabble.com/FTP-Try-login-once-and-disconnect-if-failure-td1692660.html#a1692660 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.