<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesource.org/schema/mule/core/2.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:spring="http://www.springframework.org/schema/beans"
      xmlns:file="http://www.mulesource.org/schema/mule/file/2.0"
      xmlns:vm="http://www.mulesource.org/schema/mule/vm/2.0"
      xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       http://www.mulesource.org/schema/mule/core/2.0 http://www.mulesource.org/schema/mule/core/2.0/mule.xsd
       http://www.mulesource.org/schema/mule/file/2.0 http://www.mulesource.org/schema/mule/file/2.0/mule-file.xsd
       http://www.mulesource.org/schema/mule/vm/2.0 http://www.mulesource.org/schema/mule/vm/2.0/mule-vm.xsd">

    <configuration>
        <default-threading-profile doThreading="false"/>
    </configuration>

    <file:connector name="fileConnector" autoDelete="true" fileAge="1000">
        <receiver-threading-profile doThreading="false"/>
        <dispatcher-threading-profile doThreading="false"/>
    </file:connector>

    <file:endpoint path="./.mule/in" name="get" connector-ref="fileConnector"/>

    <custom-transformer class="org.mule.transport.file.transformers.FileToByteArray" name="FileToByteArray"/>

    <model name="ESTest">

        <service name="FolderTO">
            <inbound>
                <file:inbound-endpoint ref="get"
                    comparator="org.mule.transport.file.comparator.OlderFirstComparator"
                    reverseOrder="true">
                    <file:file-to-byte-array-transformer/>
                </file:inbound-endpoint>
            </inbound>
            <component>
                <singleton-object class="org.mule.tck.functional.FunctionalTestComponent"/>
            </component>
            <component-threading-profile maxThreadsActive="1"/>
        </service>
    </model>

</mule>
