INT-4049:Fix FileSplitter for Message item

JIRA: https://jira.spring.io/browse/INT-4049

Since the `FileSplitter` can now return `Message<?>` as item for markers, we should ensure the original headers copying, e.g. `file_remoteSession`
Also change `FtpServerOutboundTests-context.xml` to check that new `file_marker` header works well
This commit is contained in:
Artem Bilan
2016-06-08 21:49:55 -04:00
parent 33c866fbb0
commit c7042151df
3 changed files with 6 additions and 6 deletions

View File

@@ -151,7 +151,7 @@
</int:chain>
<int:service-activator input-channel="markers"
expression="payload.mark.toString().equals('END') ? headers['file_remoteSession'].close() : null"/>
expression="headers['file_marker']?.equals('END') ? headers['file_remoteSession'].close() : null"/>
<int-sftp:outbound-gateway
session-factory="sftpSessionFactory"