Announcement Announcement Module
Collapse
No announcement yet.
read file again when updated Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • read file again when updated

    Hello,

    Is there a way to configure a file inbound-channel-adapter to read a file whenever it is updated?

    I have a folder where the same filename can be used and every time it is updated the inbound-channel has to pick it up and process it.

    I have tried AcceptOnceFileListFilter but I believe if the filename goes into its queue it will be ignored at the next poll.

    I'm new to Spring, any help would be appreciated. Below is a snippet of my AC config.

    Code:
    <file:inbound-channel-adapter channel="input" id="fileIn"
    							  directory="file:D:\\homes\\input"
    							  filename-pattern="^[A-Za-z0-9-]*\.csv$"
    							  auto-startup="true">
    	<integration:poller>
    		<integration:interval-trigger interval="5" time-unit="SECONDS"/>
    	</integration:poller>
    </file:inbound-channel-adapter>
    I have found another thread which answers my question: http://forum.springsource.org/showth...-file-contents
    I thought there is a way to do this with the spring-integration-file config options.
    Is there a way to remove this thread?
    Last edited by Surena; May 24th, 2011, 02:12 PM. Reason: found answer to my issue.
Working...
X