5 Replies Latest reply on Jan 12, 2011 8:37 AM by nickarls

    SFTP from JBoss to FTP server

    izgur

      Hey!

       

      I need to send a file from JBoss to a FTP server over SFTP. I got the partners private key. I imported it in filezilla and everything works...

       

      Now I need to write a WS which would send the file...

       

      Has JBoss5.1 a SFTP library i can use ???

       

      Thanks advance!

       

      Regards, Igor!

        • 1. SFTP from JBoss to FTP server
          nickarls

          Hmm, I don't see how WS fits into the picture, I think you should be looking for some Java SFTP implementations and use that server-side. Or?

          • 2. SFTP from JBoss to FTP server
            izgur

            OK. I don't even know why I worte down WS.  I will probably made it as a WS because I will call it from my BPEL process.

            And I don't know any other way to call some java code as realize it as a WS.

            But that's not important. We can look it as a JAVA implementation ...

             

            I didn't fount any existing SFTP library in JBoss. That why i installed the Chilkat library. As an application i works well, but when i deployed it through Axis2 (I had to import chilkat.jar when creating an Axis2 archive) i get: native library already loaded in another classloader. To solve that must be very complicated and I don't have this time... writing my own classloader?

             

            That's why I'm looking for a built-in SFTP library!!!

             

            I'm trying now the Jsch library, but don't get it even to work in a application. I think it doens't work with putty generated keys....

             

            Please help!

            • 3. SFTP from JBoss to FTP server
              nickarls

              There are no built-in libs for that. And this issue is not that much AS-dependent at all, perhaps you should check out the JavaRanch forums for more assistance?

              • 4. SFTP from JBoss to FTP server
                izgur

                OK. That means I got to import a SFTP library like chilkat, which works running as an application and not deployed on JBoss.

                 

                Any idea how to tell JBoss that he should load every libary just once or how to change the classloader so that i avoid the :

                native libraby already loaded in another classloader ...

                • 5. SFTP from JBoss to FTP server
                  nickarls

                  Post a full stack trace, relevant code, where you have the dll:s etc.