On Tue, Jul 6, 2010 at 11:05 AM, Mattias Severson <mat...@gmail.com> wrote: > > I may have found a suitable method, how about the > http://grepcode.com/file/repo1.maven.org/maven2/com.jcraft/jsch/0.1.42/com/jcraft/jsch/Session.java#Session.connect%28int%29 > Session.connect(int connectTimeout) method? >
Great thats the connect timeout, I wonder if its in seconds or millis ? Then create a ticket in JIRA so we can add a connection timeout option and have camel-ftp configure this for you. > I also found the > http://grepcode.com/file/repo1.maven.org/maven2/com.jcraft/jsch/0.1.42/com/jcraft/jsch/Session.java#Session.setTimeout%28int%29 > Session.setTimeout(int timeout) that may correspond to the > http://commons.apache.org/net/api/org/apache/commons/net/ftp/FTPClient.html#setDataTimeout%28int%29 > FTPClient.setDataTimeout(int dataTimeout) method. > > Unfortunately, I have not found any documentation on JSCH itself, so these > are my best guesses. > > /Mattias > -- > View this message in context: > http://camel.465427.n5.nabble.com/Configuration-of-connection-timeout-when-transmitting-files-to-remote-SFTP-server-tp696546p853217.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus