spring-file-poller | simple spring boot application | Application Framework library
kandi X-RAY | spring-file-poller Summary
kandi X-RAY | spring-file-poller Summary
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. 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.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Set the inbound failed state directory
- Create a directory
- The transaction synchronization factory bean
- Create a file reading message source
- Scan directory scanner
- Handler for message writing messages
- The thread pool executor
- Entry point for the application
- The inbound file channel
- Set outbound output directory
- Set the inbound directory
- The inbound read directory
- Bean integration of the inbound file
- The outbound file name generator
- Write the contents of the string to a file
spring-file-poller Key Features
spring-file-poller Examples and Code Snippets
Community Discussions
Trending Discussions on spring-file-poller
QUESTION
I am currently using this project as an attempt to listen and poll files from a FS structure, start Spring Batch jobs from them and write'em back to a different folder.
Unfortunately, as I can guess, it can only define one single folder for each type of channel (read, out, fail and processed). I would like to define a parent folder for each channel and a few children folders to be automatically created and have a scanner on.
E.g:
...ANSWER
Answered 2018-Feb-24 at 03:47Did you see a RecursiveDirectoryScanner
there in Spring Integration?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install spring-file-poller
You can use spring-file-poller like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the spring-file-poller component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page