Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • use of declarative programming
  • how to interact with the file system
  • how to use a WorkManager thread pool

The source XML 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 servicemix.xml file while reading this document. The Java class files are located in the servicemix-1.0.jar file in the ServiceMix installation directory. To look at the Java source code, either unjar and decompile the .class files or download the source code. The source code is necessary for Useful Code Hints section below.

The File Binding XML file, servicemix.xml, contains two components and a supporting bean. One component waits for a file to be deposited into the the inbox directory, retrieves it, sends it to the Normalized Message Router (NMR). The NMR routes the file to another component, which deposits it into an outbox directory.

...