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

Recursively read files with Spring Integration SFTP DSL

I am trying to make Spring Integration SFTP read files (.txt) from a remote server recursively from all subfolders. The remote folder is something like "/tmp/remoteFolder" and all subfolders are date folders like "/tmp/remoteFolder/20180830",…
2dor
  • 851
  • 3
  • 15
  • 35
0
votes
1 answer

Custom directory scanner for sftp-inbound-channel-adapter

Our application will be reading and writing files to FTP folder with directory structure {date}/{usercode}/*. We are trying to use sftp inbound adapter.
0
votes
0 answers

how to close the inbound Channel adapter after fetching the files from SFTP server using java configuration

Hi I am pretty new to spring and trying to fetch the files from sftp server using SFTP inbound channel adapter in java config but unable to close the adapter ,I tried using the below code snippet, But Main isn't recongizing the inbound adapter and…
user2573586
  • 71
  • 1
  • 2
  • 13
0
votes
1 answer

Spring integration - stop polling if no file returned

I have a poller that is polling a remote dir in order to sftp the file across but i want to stop it if it doesn't find the file after x amount of attempts. Is there a simple config for this? ApplicationContext.xml …
0
votes
1 answer

Spring Boot application getting error for Inbound SFTP Adaptor

Exception: Caused by: java.lang.IllegalArgumentException: evaluationContext must not be null Stacktrace Error creating bean with name 'sftpMessageSource_DebitNotification_SE' defined in com.canaldigital.tsi.bank.xml.config.BankFtpListner:…
0
votes
1 answer

Re Read file when using int-sftp:inbound-channel-adapter

I have a int-sftp:inbound-channel-adapter which uses SftpPersistentAcceptOnceFileListFilter as part of a composite filter. Reading the documentation/ source code it should accept a file to be read again if the modified datetime has changed, but I…
0
votes
1 answer

Spring Integration read files from dynamic multiple directories

I am using this and Spring forum. The process works if remote directory is set as "foo" but it doesn't accept expression (foo/\*/*) that can read any number of files/folders under "foo". Completely lost! @Bean public FtpInboundFileSynchronizer…
Divs
  • 1,578
  • 2
  • 24
  • 51
0
votes
1 answer

Discussion about spring integration sftp

I use spring integration sftp to download and upload files.In the document ,I found Spring Integration supports sending and receiving files over SFTP by providing three client side endpoints: Inbound Channel Adapter, Outbound Channel Adapter, and…
linghu
  • 133
  • 3
  • 16
0
votes
1 answer

Spring FTP issue when sending file TO FTP

I'm trying to send a file to a FTP. I noticed that using a command prompt everything is ok if I do this: put test.txt 'MY_FILE_NAME_IN_FTP_HERE' But, trying to send the file using my Spring I'm getting this: exception is java.io.IOException:…
Columb1a
  • 463
  • 2
  • 11
  • 25
0
votes
1 answer

How to use the channel in Spring Integration but Using just java config

I have been reading the Spring Documentation and forums on Internet. I did something very similar to this: sftp with java config in spring The point is I would like to use the channel to send a message, So I've created a method like this…
0
votes
1 answer

Why there is separate channel declaration for SFTP inbound/outbound channel adapter and why not for simple file inbound/outbound channel adapter?

I have developed a code going through Spring Integration File Support tutorial, in which I am polling files from specific location and processing them further. For polling purpose I have used Spring Integration's Inbound and Outbound channel…
tpsaitwal
  • 422
  • 1
  • 5
  • 23
0
votes
1 answer

How to filter out dot and dot dot(default unix inodes) while polling a directory using spring integration

I am trying to use spring integration to poll some of my directories. Since spring integration writes in KeyValue table and it picks up this . as well as .. unix inode and tries to write repeatedly to my db table it throws exception after a few…
0
votes
1 answer

How to SFTP after session timeout using JSch and Spring Integration

I have application that SFTPs a file via a SftpInboundFileSynchronizer: @Bean public SftpInboundFileSynchronizer sftpInboundFileSynchronizer() { SftpInboundFileSynchronizer fileSynchronizer = new…
James
  • 2,876
  • 18
  • 72
  • 116
0
votes
1 answer

Spring Integration SFTP channel adapter not sending the message to the down stream service activator for the second polling

I am trying to implement simple SFTP channel adapter to accept files with any file name(to allow duplicate file names). For the first poll the file is transferred from SFTP server directory to the local directory and the service activator which is…
0
votes
1 answer

Hundrets of in and output - channel for Spring Integration SFTP

I´m looking for an smart idea how to handle a lot of channels in and output in Spring Integration with the sftp adapter. My principlestructure for the folders is like, which I can´t change! / /user_1 /businessprocess_1 /input /output …