firstly,thanks for attention
i defined ftp adapter in my spring integration project and used mv
command to move files in ftp server,directory structure is:
ftp-root
-----------Directory1\
-----------------in\
---------------------------file.in
-----------------out\
i want to move file file.in
in ftp-root\Directory1\in\
directory to move ftp-root\Directory1\out\
with .out.rpt
extension ftp-root\Directory1\out\a.out
i used int-ftp:outbound-gateway
adapter to run mv
command on ftp server,my code is:
<int-ftp:outbound-gateway id="gatewayMv"
session-factory="ftpSessionFactory"
expression="payload.remoteDirectory + '/' + payload.filename"
request-channel="mvChannel"
command="mv"
rename-expression="payload.remoteDirectory + '/' + payload.filename "
reply-channel="aggregateResultsChannel"/>
how to use SpEL expression to replace in
with out
in rename-expression option?