Versions Compared

Key

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

...

Code Block
langxml
titleXBean using NameComparator
<file:poller service="test:poller" endpoint="poller"
	file="file:inbox" targetService="test:service"
	targetEndpoint="endpoint" period="10000" recursive="true">
        <property name="comparator">
            <bean class="your.package.NameComparator"/>
        </property>
</file:poller>

...

We provide the following comparators:

Info
titleProvided Comparator
borderStylesolidbgColor='lighblue'

Class Name

Description

org.apache.servicemix.file.comparator.FileNameComparator

Compare the files based on the file name/path (alphanumeric sorted)

org.apache.servicemix.file.comparator.LastModificationDateComparator

Compare the files based on the last modification date (from oldest to newest)

org.apache.servicemix.file.comparator.SizeComparator

Compare the files based on the file length (from smallest to biggest)

Marshalers

By default, poller endpoints expect the content of the file to be in xml format.

...