Requirement: We are trying to implement an application and its functionality is to move a file from inbound folder to process folder over sftp with spring sftp outbound gateway. We have implemented sftp outbound gateway as shown below. When we executed application it is giving nothing, i.e., neither exception nor expected output (i.e., file is not moving over sftp)
<int-sftp:outbound-gateway id="remoteftpLS"
session-factory="defaultSftpSessionFactory" request-channel="sftpRequestChannel"
filename-regex=".*\.txt$" command="mv" expression="'/tmp/datlaa'"
rename-expression="'/tmp/datlaa/archive'" />
I want to move *.txt files from '/tmp/datlaa to /tmp/datlaa/archive.
Can you please suggest any configuration mistake from my side. or how to make it work?
Thanks
Adding application-context file http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd http://www.springframework.org/schema/integration/sftp http://www.springframework.org/schema/integration/sftp/spring-integration-sftp.xsd">