-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Mohammed Saleem Padinharkkara opened INT-3046 and commented
While writing/reading large files, we typically wait for a ".ok" file to begin processing. When using Spring Integration, we can use the temporary suffix to ensure that the file will be complete at the time of reading, but in real world situations where we are processing files generated by different systems, we are left to write a chain of handlers to look for the .ok file and then process the actual file.
Ideally the framework should have this as a built in property, something called triggerFile for both FileWritingMessageHandler and FileReadingMessageSource, which will look for the triggerFile in the same directory before it continues with the current functionality.
For eg:
<int-file:inbound-channel-adapter id="wssConfirmationsOK" filename-pattern="murexTradeConfirmation*.xml" triggerFileExtension="ok" directory="file:${confirmations.directory}">
<int:poller id="poller" fixed-rate="30000"
max-messages-per-poll="10" />
</int-file:inbound-channel-adapter>
<int-file:outbound-channel-adapter channel="generatedTdmls" directory="file:${tdmls.directory}" triggerFileExtension="ok"/>
Affects: 2.2.3
1 votes, 3 watchers