Questions tagged [spring-integration-sftp]

The Secure File Transfer Protocol (SFTP) is a network protocol which allows you to transfer files between two computers on the Internet over any reliable stream.

Spring Integration provides support for file transfer operations via SFTP.

The SFTP protocol requires a secure channel, such as SSH, as well as visibility to a client’s identity throughout the SFTP session.

Spring Integration supports sending and receiving files over SFTP by providing three client side endpoints: Inbound Channel Adapter, Outbound Channel Adapter, and Outbound Gateway It also provides convenient namespace configuration to define these client components.

xmlns:int-sftp="http://www.springframework.org/schema/integration/sftp"
xsi:schemaLocation="http://www.springframework.org/schema/integration/sftp
    http://www.springframework.org/schema/integration/sftp/spring-integration-sftp.xsd"

for more, please look through spring official SFTP page

332 questions
20
votes
1 answer

SFTP upload file Permission denied

I'm trying to upload excel file using SFTP to linux machine from my local windows PC. Here is my code: private void uploadToSftp() { try { ChannelSftp sftpClient = null; Channel channel = null; …
user9219740
10
votes
3 answers

Spring integration - AbstractInboundFileSynchronizer not updating file

I would have expected the ftp synchronization mechanism to update a changed file. However, from what I can see here, the file is only downloaded if it does not exist yet. As for now, the file is not saved locally even though the timestamp/ content…
Ueli Hofstetter
  • 2,409
  • 4
  • 29
  • 52
6
votes
0 answers

Caught an exception, leaving main loop due to Socket closed

Not able to send the files to SFTP server. I didn't find the exact issue from the logs see below. used Spring integration SFTP configuration to send my files to client instance. I have referred this link…
6
votes
0 answers

Spring-integration-ftp polls file even when my application is stopped

As a follow up to the question - Same file gets picked up again and again in spring-ftp but with different names I have the following configuration in my application.xml
5
votes
0 answers

Files are sending to wrong sftp location while using Spring SFTP outbound gateway

We are using Spring SFTP (outbound) using Gateway to transfer files to multiple destinations. But often, few files are sent to the wrong destination. Can't find any clue as we don't get any error in our log except file count error after sending…
mnhmilu
  • 2,327
  • 1
  • 30
  • 50
5
votes
1 answer

Spring Integration DSL for SFTP Outbound with delete

I'm using Sprint Integration(File, SFTP, etc) 4.3.6 Spring Boot 1.4.3 Spring Integration Java DSL 1.1.4 and I'm trying to set up an SFTP outbound adapter that would allow me move a file to a directory on the remote system and also remove or…
Tristan
  • 279
  • 5
  • 21
4
votes
0 answers

Spring Outbound SFTP integration streaming

We are developing a spring batch application which is going to process "big" files in the future. To maintain a low memory signature we use spring batch on the smallest possible chunks of these files. After processing, we want to write a result back…
Abaddon666
  • 1,533
  • 15
  • 31
4
votes
2 answers

How to dynamically define file filter pattern for Spring Integration SFTP Inbound Adapter?

I need to dynamically pull specific files from different directories from different sftp servers to a local server directory of a spring boot application. I store the paths and a file pattern in a postgres database. I got everything working but i…
4
votes
2 answers

Need to process multiple files in parallel in Spring Integration

I have a SFTP directory and reading files and sending the files for further processing to a ServiceActivator.At any point I need to process them parallely using the handler. Here is my SPring Integration java DSL…
Harish
  • 3,343
  • 15
  • 54
  • 75
3
votes
2 answers

Spring Integration Flow ClassCastException after Spring Boot 3.0.1 Update

I was working on the Spring Boot Update to 3.0.1 and with it the Upgrade of Spring Integration 6.0.0 and Spring Cloud Stream 4.0.0. After upgrading however my previously working Spring Integration Flow is failing with underlying…
3
votes
2 answers

Spring Integration DefaultFtpsSessionFactory

This configuration worked perfectly for me before we upgraded the spring boot to 2.4.2 version. DefaultFtpsSessionFactory sessionFactory = new DefaultFtpsSessionFactory(); sessionFactory.setHost("host"); …
3
votes
1 answer

SftpRemoteFileTemplate does not work with RemoteDirectoryExpression when @Autowired

Below is the configuration I am using @Autowired private SftpRemoteFileTemplate outboundTemplate; @Autowired private SftpConfig config; @Bean @ServiceActivator(inputChannel = "sftpOutputGenericChannel") public MessageHandler simplehandler() { …
3
votes
1 answer

How to get the error message in Controller or Route after handling exception in errorHandler?

I had to customized Sftp Inbound default handler LoggingHandler and using my own CustomizedErrorHandler which extends ErrorHandler. But I can't return any message to my controller after handling exceptions. I was researching couple of days and I…
3
votes
2 answers

What's the procedure to re-download locally deleted files using SFTP Inbound

As per this doc couldn't find the right process to re-downloading a locally removed file from remote SFTP. The requirement is, to delete local file which already been fetched from remote SFTP and use sftp-inbound-adapter (DSL configuration) to…
3
votes
1 answer

Spring Integration: How to dynamically create subdir on sftp using IntegrationFlow

I have a use case for transfering files to sftp under certain subdirs that are created dynamically. I got this working using custom SftpMessageHandler method and a Gateway. But the issue with this approach was, it was not deleting local temp files…
1
2 3
22 23