Results 1 to 1 of 1

Thread: read file again when updated

  1. #1
    Join Date
    May 2011
    Posts
    1

    Default 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 at 01:12 PM. Reason: found answer to my issue.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •