You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by geetha <ha...@gmail.com> on 2015/03/05 10:29:56 UTC

sftp maximumReconnectAttempts inside consumerTemplate adds the user provided value to the default value

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.

Re: sftp maximumReconnectAttempts inside consumerTemplate adds the user provided value to the default value

Posted by yogu13 <yo...@gmail.com>.
Hello,

I think you can achieve it by using Recipient List . Also perhaps this can
help you on how to achieve it
http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html. 

Hope this helps!

Regards,
-Yogesh



--
View this message in context: http://camel.465427.n5.nabble.com/sftp-maximumReconnectAttempts-inside-consumerTemplate-adds-the-user-provided-value-to-the-default-vae-tp5763645p5763649.html
Sent from the Camel - Users mailing list archive at Nabble.com.