...
- use of declarative programming
- how to interact with the file system
The source code for the File Binding example is located in the ServiceMix installation directory under the examples\file-binding
directory in the servicemix.xml
file. It is recommended that you refer to the source code while reading this document.
...
The File Binding servicemix.xml
contains two components and a
...
supporting bean. One component retrieves files from a source directory, then routes the file over the Normalized Message Router (NMR) to
...
another compoonent which deposits the file into a destination directory in the file system.
...
Running the Basic Example
From a command shell, go to the Basic example directory:
...
The diagram below illustrates the flow of messages through the Basic components.
There are two components and a referenced bean (used by one of the components) in the servicemix.xml
file:
- filePoller - periodically checks the "inbox" directory for new files. If there is a file present, it transports the file over the Normalized Message Router (NMR) to the fileSender component. It will also recursively scan subdirectories for files.
- fileSender -
- workManager -
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
...