LibraryLink ToToggle FramesPrintFeedback

Chapter 1. Introduction to the File Binding Component

The file component provides integration to the file system. It can be used to read and write files via URI. It can also be configured to periodically poll directories for new files.

It allows for the creation of two types of endpoint:

The file component has the following advanced features:

A service unit that configures the file binding component will contain two artifacts:

You can package file endpoints in an OSGi bundle. To do so you need to make two minor changes:

[Important]Important

When you deploy file endpoints in an OSGi bundle, the resulting endpoints are deployed as a JBI service unit.

For more information on using the OSGi packaging see Appendix D.

The elements used to configure file endpoints are defined in the http://servicemix.apache.org/file/1.0 namespace. You will need to add a namespace declaration similar to the one in Example 1.2 to your xbean.xml file's beans element.


In addition, you need to add the schema location to the Spring beans element's xsi:schemaLocation as shown in Example 1.3.