Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2838C108C6 for ; Thu, 5 Mar 2015 09:41:40 +0000 (UTC) Received: (qmail 49454 invoked by uid 500); 5 Mar 2015 09:41:33 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 49409 invoked by uid 500); 5 Mar 2015 09:41:33 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Delivered-To: moderator for users@camel.apache.org Received: (qmail 23031 invoked by uid 99); 5 Mar 2015 09:30:21 -0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of happy9may@gmail.com does not designate 162.253.133.43 as permitted sender) Date: Thu, 5 Mar 2015 02:29:56 -0700 (MST) From: geetha To: users@camel.apache.org Message-ID: <1425547796219-5763645.post@n5.nabble.com> Subject: sftp maximumReconnectAttempts inside consumerTemplate adds the user provided value to the default value MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, Am using sftp uri inside consumerTemplate to get the file. Am setting maximumReconnectAttempts as n. If the password is incorrect, it tries 3+n times (ie., default value = 3 + user provided value n) So the minimum retry attempt is 4. I have tested it with different values, but the behavior is same everytime. Providing 0 or any negative value disabling the retry attempt. consumer.receive("sftp://xyz:***@hostname:22//var/tmp/?stepwise=false&maximumReconnectAttempts=3&delay=5000&fileName=abc.txt&move=${file:name}.done", 5000); Why it is not overriding the default instead adding the given value to the default value? -- View this message in context: http://camel.465427.n5.nabble.com/sftp-maximumReconnectAttempts-inside-consumerTemplate-adds-the-user-provided-value-to-the-default-vae-tp5763645.html Sent from the Camel - Users mailing list archive at Nabble.com.