0 Replies Latest reply: May 17, 2012 3:50 PM by Peggy Ballenger RSS

    FTP to SFTP Configuration

    Peggy Ballenger Newbie

      Running Jboss 4.5.GA

       

      This should be easy but I'm overwhelmed trying to find the answer via Google and these JBoss community and documentation.

       

      I have a FTP to SFTP configuration I'm trying to do. I have a windows server that I need to get a file from and send via sftp. In my ftp provider I have configured the windows server with protocol as ftp then I am using FtpPutAction which uses RemoteFileSystemFactory, RemoteFileSytem and SecureFTPImpl to send the file to a sftp url. When I try to run this, I get no SFTP server error message.

       

      I've copied my ftp provider and corresponding action.

       

      So my Jboss server would go to the windows server to get the file and the action would put it on the secured server.

       

        <ftp-provider hostname="windowsserver1" name="CIGNA-eligibility-transfer">
      <ftp-bus busid="CIGNA-eligibility-transfer-channel">
        <ftp-message-filter
          directory="/a1hcm/test/outbound/Cigna%20Disability_FMLA"
          protocol="ftp"
          username="myusername"
          password="mypassword"
                  certificate-url="/home/location"
          input-suffix="*.txt"
          passive="true"
          read-only="true"
          work-suffix=".esbWorking"
          post-delete="false"
          post-directory="/a1hcm/test/outbound/Cigna%20Disability_FMLA"
          post-suffix=".COMPLETE"
          error-delete="false"
          error-directory="/a1hcm/test/outbound/Cigna%20Disability_FMLA"
          error-suffix=".IN_ERROR"
         />
      </ftp-bus>
      </ftp-provider>

      <actions mep="OneWay">

         <action class="com.aimco.esb.common.ftp.actions.FtpPutAction" name="SendToFTP">
          <property name="URL" value="sftp://username:password@secureserver:/home/filepath"/>
              <property name="filename" value="filename.txt"/>
              <property name="passive" value="true"/>
              <property name="renameOnSend" value="false"/>      
        </action>

       

      Am I missing something? Does anyone do something similar to this?

      Thanks