← ResourcesConnector migration

Migrating the MuleSoft SFTP connector to Spring Boot

5 min read

The MuleSoft SFTP connector maps onto Spring Integration's SFTP support (an SFTP session factory plus RemoteFileTemplate), or a direct JSch session for simple cases.

Operation mapping

  • sftp:read → sftpRemoteFileTemplate.get(path, inputStream -> ...)
  • sftp:write → sftpRemoteFileTemplate.send(message)
  • sftp:list → sftpRemoteFileTemplate.list(directory)
  • sftp:listener (source) → a @Scheduled method polling the remote directory

Before and after: list

Mule (XML)
<sftp:list config-ref="SFTP_Config" directoryPath="/outbound"/>
Spring Boot (Java)
SftpClient.DirEntry[] entries = sftpRemoteFileTemplate.list("/outbound");

How the conversion is validated

The generated SFTP integration is unit-tested; in a pilot it is validated against your own SFTP server with the same field-by-field Proven-Parity comparison.

Prove it on your own code

Send us one Mule application and your Postman collection. We convert it and prove the Spring Boot output matches field-by-field — on-premise, inside your environment.