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:
@@ -124,7 +124,7 @@
|
||||
</int:chain>
|
||||
|
||||
<int:service-activator input-channel="markers"
|
||||
expression="payload.mark.toString().equals('END') ? headers['file_remoteSession'].close() : null"/>
|
||||
expression="'END'.equals(headers['file_marker']) ? headers['file_remoteSession'].close() : null"/>
|
||||
|
||||
<int:channel id="appending" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user