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

Spring integration - SFTP rename or move file in remote server after copying

I am trying to move or rename remote file instead of deleting the remote file after download, I found that it can be done by outbound gateway move command, but could not find proper way to do it. Please help in rename the file after…
nmanandhan
  • 302
  • 4
  • 14
3
votes
2 answers

Placing file inside folder of S3 bucket

have a spring boot application, where I am tring to place a file inside folder of S3 target bucket. target-bucket/targetsystem-folder/file.csv The targetsystem-folder name will differ for each file which will be retrived from yml configuration…
3
votes
2 answers

How to stop OR change delay of Spring Integration Poller

I am using Spring Integration to read files from a directory using following configuration. However I am looking to stop poller once I found any file until service not restarted again. Is there any way I can change poller delay at runtime OR…
Sushil
  • 327
  • 1
  • 3
  • 20
3
votes
1 answer

Setting multiple inbound-channel-adapter at runtime

Using spring-integration-sftp, what is the recommended way to create an arbitrary number of inbound-channel-adapter objects? My application needs to monitor multiple remote directories (1 to n), which will not be known until runtime.
3
votes
1 answer

How to add custom method to spring integration ftp gateway interface?

Following the Spring integration ftp doc , I have managed to send files to ftp server through the java config way: @MessagingGateway public interface MyGateway { @Gateway(requestChannel = "toFtpChannel") void sendToFtp(File…
3
votes
1 answer

Spring junit test for SFTP connection: com.jcraft.jsch.JSchException: Packet corrupt

I have been recreating this example in my local: https://github.com/spring-projects/spring-integration-samples/tree/master/basic/sftp But this time using just annotations instead xml config. I have something like this: @Configuration public class…
3
votes
1 answer

How to configure SFTP Outbound Gateway using Java Config?

I would like to use the SFTP Outbound Gateway to get a file via SFTP but I only find examples using XML config. How can this be done using Java config? Update (Thanks to Artem Bilan help) MyConfiguration class: @Configuration public class…
James
  • 2,876
  • 18
  • 72
  • 116
3
votes
1 answer

Spring integration SFTP - dont redowload locally deleted files

From reading the Spring SFTP docs (http://docs.spring.io/spring-integration/reference/html/sftp.html) it's not entirely clear if it's possible to prevent redownloading of successfully transferred files which subsequently get removed. The files being…
3
votes
1 answer

spring SFTP create file in remote from byte[]

how to create an file in remote directory from byte[], as there is send() methods available in PollableChannel. from below code able to send file to remote, but it's creating an file in local machine. how to avoid creating file in local…
Abhishek Nayak
  • 3,732
  • 3
  • 33
  • 64
2
votes
2 answers

Spring SFTP Outbound Adapter - determining when files have been sent

I have a Spring SFTP output adapter that I start via "adapter.start()" in my main program. Once started, the adapter transfers and uploads all the files in the specified directory as expected. But I want to stop the adapter after all the files have…
2
votes
0 answers

Spring Integration Sftp : Sometimes taking over 15 min to complete the operation

I am using Spring integration sftp to put files on a remote server and below is configuration. 5.2.5.RELEASE I have configurated @MessagingGateway. @MessagingGateway public interface…
2
votes
1 answer

Spring Sftp fetch file using outbound gateway within inbound adapter message handler

I am using Inbound Adapter using Java DSL to poll pdf files from the SFTP server. I have a use case where after fetching the pdf file application will fetch the config file present in CSV format with the same name on the SFTP server. After fetching…
2
votes
1 answer

How to solve if `RotatingServerAdvice` is not fetching file for multiple times?

I am using IntegrationFlow as Sftp Inbound DSL Configuration where I am using CustomTriggerAdvice to handle manual trigger. Please see below code snippet for reference. I am also using RotatingServerAdvice for handling multiple path in same host.…
2
votes
3 answers

Streaming from remote SFTP directories and sub-directories with Spring Integration

I am using Spring Integration Streaming Inbound Channel Adapter, to get stream from remote SFTP and parse every lines of content process. I use : IntegrationFlows.from(Sftp.inboundStreamingAdapter(template) …
2
votes
2 answers

How to check SFTP connection successful or not in Spring (with a try catch)? Which Library should I use to check SFTP connection in Spring?

I need to check the health of the SFTP connection. How to check SFTP connection successful or not in Spring boot(with a try-catch)? Which library should I use to check the SFTP connection in Spring?
Muhammad Saimon
  • 233
  • 2
  • 10
1
2
3
22 23