views:

61

answers:

3

Hi, The "jsch" based implementation works for me.
But it looks not modern one due to using Vector (old style Java collection).
I found that the other implementations are less popular and not documented.
Can you recommend implementation of SFTP library that he/she has good experience with it.
Thanks.

+2  A: 

It works. Who cares if it uses Vector? It's by far the most popular one. In fact, it's the only one I can think of without resorting to Google.

dty
http://stackoverflow.com/questions/1386275/why-java-vector-class-is-considered-obsolete-or-deprecated
Boris
Did you have a point? I know Vector is synchronised. But: a) the synchronisation overhead is virtually zero on a modern JVM with uncontended locks, and b) you're talking about a handful of extra processor cycles compared to the burden of network comms with encryption.
dty
+1  A: 

As @dty said, as long as your application can work smoothly why do you care for the usage of deprecated classes/methods in the library ?

You only need to care about what you're calling, not how does it work in the inside.
You can also use abstraction tools above JSch, but it won't change a thing.

You can also check for JSch alternatives, but as JSch is widely used you'll have probably less bugs with it.

Colin Hebert
The problem with old SSH implementations is that such implementation usually don't work well with later versions of SSH server software. So maintenance for better compatibility must be provided and this is what open-source implementations fail to offer.
Eugene Mayevski 'EldoS Corp
The clue's in the name... if it's open-source and you want a new feature to support "later versions of SSH server software", then just implement it yourself.
dty
+1  A: 

You may also want to take a look at IP*Works! SSH from /n software.

Spencer
Not that I judge the tool but $899 seems expensive to just get rid of some `Vector`
Colin Hebert