Files
spring-integration-samples/applications/file-split-ftp
Artem Bilan 361866da58 Move main to version 6.0
* Upgrade to the latest dependencies
* Migrate samples to `jakarta` namespace
* Rework `cafe-scripted` to RSocket instead of already removed RMI
* Migrate JMS samples to Apache Artemis for Jakarta EE 9
* Disables mails tests since there is a requirement to migrate to Greenmail for Jakarta EE 9 support
* Rework `generatePom` task to a new `maven-publish` plugin style
2022-01-20 17:10:31 -05:00
..
2019-03-22 14:52:00 -04:00
2016-09-21 11:15:14 -04:00
2022-01-20 17:10:31 -05:00
2017-12-14 09:04:35 -08:00

:imagesdir: ./images

= File Split and FTP Sample

- Looks for files `*.txt` in `/tmp/in`
- Reads file and writes to 3 files based on account (first 4 bytes in file)
- FileSplitter -> router [lines -> `lines`], [file marks -> `marks`]
- `marks` filters on EOF marker (drops SOF)
- pubsub [flush files], [ftp (x3)], [email result]
- Exceptions go to `tfrErrors` - sends failure email
- input file is renamed, based on final dispostion

Test cases are provided for happy path and failure scenarios

Run `ApplicationTests` as a JUnit test from your IDE.

= Flow Visualization

This visualization is generated by the https://github.com/spring-projects/spring-flo/[Spring Integration Flow Viewer] which is currently under development.

image::flo1.png[]

image::flo2.png[]