https://github.com/iainporter/spring-file-poller
A simple spring boot application that demonstrates file polling using the Spring Integration DSL
https://github.com/iainporter/spring-file-poller
dsl file polling spring-boot-application spring-integration
Last synced: 9 months ago
JSON representation
A simple spring boot application that demonstrates file polling using the Spring Integration DSL
- Host: GitHub
- URL: https://github.com/iainporter/spring-file-poller
- Owner: iainporter
- License: apache-2.0
- Created: 2016-06-15T14:39:37.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2023-03-31T15:22:04.000Z (about 3 years ago)
- Last Synced: 2025-04-02T17:38:09.343Z (about 1 year ago)
- Topics: dsl, file, polling, spring-boot-application, spring-integration
- Language: Java
- Size: 65.4 KB
- Stars: 27
- Watchers: 6
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
A simple Spring Boot application that demonstrates how to set up File polling using the Spring Integration DSL and how to test it
The application consists of an Integration flow that polls a directory for files that match a given regex expression.
On finding a file it is transformed to a String and passed to a message handling flow that writes it out to another directory.
The EIP Flow

It can be used as an entry point to a bigger application.
The tests show best practices for testing such a component.
See blog post: [File Polling made easy with Spring Integration DSL](https://medium.com/@changeant/file-poller-with-spring-integration-dsl-ecb7bc996ba5)
To build it:
```$code
> mvn clean install
```
To run it:
```$code
> mvn spring-boot:run
```