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
0
votes
1 answer

Sftp Outbound Gateway multiple delete request getting stuck after first "File not found" issue

I am trying to delete multiple files over Sftp and using the Spring Integration SftpOutboundGateway approach. I am using QueueChannel for request and response. Also I am going Async way so that I can submit multiple request. I have also added an…
0
votes
1 answer

Using different sftp session factories

Currently i upload all my generated files to single SFTP and all works perfectly. But requirements are changed and i need to upload file on different SFTP server. Example: On REST endpoint i got request type=FULL, then i need to upload file to…
Neewbie
  • 59
  • 1
  • 2
  • 14
0
votes
1 answer

Loading big amount of files to SFTP issue

I have Spring integreation sftp config @Bean public SessionFactory sftpSessionFactory() { final DefaultSftpSessionFactory factory = new DefaultSftpSessionFactory(false); factory.setHost(properties.getHost()); …
Neewbie
  • 59
  • 1
  • 2
  • 14
0
votes
1 answer

How to get response from uploading file to sftp?

How can i get response if file is uploaded succesfuly to sftp? This is the code which i have @Bean public SessionFactory axisSftpSessionFactory() { DefaultSftpSessionFactory factory = new DefaultSftpSessionFactory(true); …
sherybedrock
  • 111
  • 3
  • 11
0
votes
2 answers

Auto create not existing directory Spring Integration SFTP

Currently i use this configuration for Spring Integration SFTP: @Bean @ServiceActivator(inputChannel = "toSftpChannel") public MessageHandler handler() { final SftpMessageHandler handler = new SftpMessageHandler(sftpSessionFactory()); …
Neewbie
  • 59
  • 1
  • 2
  • 14
0
votes
1 answer

How to write integration tests for spring-batch-integration?

I'm using spring-integration bundled with spring-batch and got stuck trying to write integration tests to test the whole flow, not just single config. I've created Embedded Sftp Server for this tests and trying to send message to sftpInboundChannel…
0
votes
1 answer

Spring Integration with SFTP

I'm building a little microservice to access files from a SFTP file server. I decided to use Spring Integration SFTP to get the job done. I'm new to Spring Integration and confused with how it all works. My goal is to get a list of files a…
Code Junkie
  • 7,602
  • 26
  • 79
  • 141
0
votes
0 answers

File doesn't get downloaded if process running for long or running the process second time onwards having file based metadata store

i have configured cached session factory and i have sftp inbound adapter, this downloads the file for some time then stops, even after restarting the process it just hangs and doesn't establish JSCH session with sftp…
Uday Singh
  • 155
  • 1
  • 8
0
votes
1 answer

Add prefix or suffix to filename while streaming the file using GET gateway

I want to add the temporary prefix or suffix while streaming the file from a remote directory using SFTP. I have tried to add temporaryFileSuffix to outboundGateway while streaming the file but it is not adding any suffix later I checked it is…
0
votes
0 answers

Discard reading the files when read one file fails during SFTP streaming

I am reading files one by one from remote directory using SFTP. To perform this I am using LS gateway, followed by split, GET gateway and then in the end rename the file. Sequence of files is very important for me, so the name of the file is having…
0
votes
1 answer

How to move file from one folder to another folder on remote sftp server providing the filename dynamically using Java Config?

I am stuck with the problem. I have a folder om my sftp server with a file in it: folder/file.txt . What i'm trying to do is simply to move this file to another directory : folder/subfolder/file.txt. In documentation it was written that you simply…
0
votes
1 answer

Stop renaming file if data processing fails while streaming remote directory file

I am reading the file from remote directory using SFTP. I am able to get file by stream using outbound gateway, and move it to archive folder even. I am processing the data in file but if there is some issue in data then I am throwing an error. I…
0
votes
1 answer

Problems in fetching large file from SFTP and storing in Postgresql using Spring and Hibernate

I have Spring integration pipeline which fetch document from SFTP server and persist it to Postgresql database (done by Spring data/hibernate). After successful sftp fetch pipeline get fileName and content (as byte[]) and persist it to database. I…
0
votes
0 answers

SFTP @Poller not triggering polling nothing happens

I am trying to set the spring boot application which will pool the csv . i do not see any activity happning in the spring boot application nor on filezilla SFTP server but if I change the same code to FTP then it works @Component …
0
votes
1 answer

Multiple Filter Expression with Spring Integration Flow

I am working with spring integration flow and I know how to add filter expression IntegrationFlows.from(Sftp.inboundAdapter(inboundSftp) .localDirectory(this.getlocalDirectory(config.getId())) .deleteRemoteFiles(true) …