Chapter 11. Filesystem integration

 

This chapter covers

  • Picking up files from the filesystem
  • Scanning and filtering directories
  • Writing messages to the filesystem
  • Dealing with concurrent writing and reading

The book Enterprise Integration Patterns defines four basic integration styles: file transfer, shared database, Remote Procedure Call (RPC), and messaging. This chapter deals with file-based integration. No different from the other integration options, file-based integration is all about getting information from one system into another. In file-based integration, this is accomplished by one system writing to disk and another reading from it. The particular details of the implementation (for example, whether both systems stream to the same large file, or multiple files are being moved around) aren’t part of the definition. After reading this chapter, you’ll have a solid understanding of the details of file-based integration and how to implement it cleanly using Spring Integration’s file handling support.

11.1. Can you be friends with the filesystem?

11.2. Writing files

11.3. Reading files

11.4. Handling file-based messages

11.5. Under the hood

11.6. Summary