Showing posts with label java dsl. Show all posts
Showing posts with label java dsl. Show all posts

Wednesday, November 15, 2017

Spring Integration file processing using DSL


Simple Example of File processing using Spring Integration 

Here is my use case , watch directory for new file and process files of certain format ( e.g *.txt ) . Process them and send to Message queue .

Spring  integration can be used for both file processing and message queue . This blog provides example for  watching file folder for changes and invoking a message

Its elegant and straight forward , example here watches directory in a certain directory and then process the files of type text .


https://github.com/arun2dot0/spring-file-process



Note : Example here will get you started , if you need to implement in load balanced environment , the "AcceptOnceFileListFilter" may not be enough , you will need persistent storage and use "FileSystemPersistentAcceptOnceFileListFilter"