On Wed, May 23, 2012 at 9:56 PM, Nestor Urquiza
<nestor.urqu...@gmail.com> wrote:
> Thanks Babak,
>
> I am trying to activate a process chain only if certain file in on the
> remote sftp. Probably you or another reader can help with some errors I am
> getting.
>
> If I use wrong credentials Camel tries to reconnect several times not
> obeying to maximumReconnectAttempts=0:
> <code>
> .from("sftp://sample.com/home/user/test?username=user&password=wrongPass&fastExistsCheck=true&maximumReconnectAttempts=0";)
> </code
>

Do you see 3 login attempts or what?
What version of Camel do you use?



> If I use good credentials and a typical home path like above it complaints
> &quot;Cannot change directory
> to: home&quot; so I am forced to use a double slash
> &lt;code>
> .from("sftp://sample.com//home/user/test?username=user&password=pass&fastExistsCheck=true";)
> </code
>
> But then with the above I get:
> <quote>
> Can't change directory: /home/krfsadmin/test
>

Maybe dont have a leading slash. It's really about the FTP server in
the other end, not allow you to change to that dir. Check on that end.
For example if the FTP server already have a home dir, then you don't
need to specify a starting directory.

 .from("sftp://sample.com?username=user&password=pass&fastExistsCheck=true";)



>
> If I use option "directory=false" which is not in the ftp2 documentation but
> in the ftp dcumentation: then I get:
>

As already said before. the old documentation at ftp is for Camel 1.x.
So there is no such option in Camel 2.x.

There is a fileName option, if you want to filter on a specific file
name only, etc.
Please spend a bit more time reading the docs and try out.


> Cannot change directory to: false
>
>
> Best,
> -Nestor
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-FTP-SFTP-check-instead-of-download-tp5713363p5713432.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to