Announcement Announcement Module
Collapse
No announcement yet.
inbound-channel-adapter - raise alert for duplicate files Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • inbound-channel-adapter - raise alert for duplicate files

    Hi there ,

    Just wondering will it be possible to raise an alert (send an email or log to a log file) when we receive a duplicate file ? My inbound-channel-adapter definition is as below ...

    Code:
    <file:inbound-channel-adapter id="filesIn" prevent-duplicates="false" 
    		filename-pattern="myfiles.*"
    		directory="file:${in.dir}">
    		<integration:poller id="defaultPoller" default="true"
    			max-messages-per-poll="1">
    			<integration:interval-trigger interval="1"
    				time-unit="SECONDS" />
    		</integration:poller>
    </file:inbound-channel-adapter>
    Thanks

  • #2
    You will need to use a custom implementation of FileListFilter, but it's not going to be very difficult. Look at AcceptOnceFileListFilter for an example. (you could modify that to raise an alert instead of just rejecting the file)

    Iwein

    Comment

    Working...
    X