<?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:http="http://www.mulesource.org/schema/mule/http/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/http/2.0 http://www.mulesource.org/schema/mule/http/2.0/mule-http.xsd
       http://www.mulesource.org/schema/mule/vm/2.0 http://www.mulesource.org/schema/mule/vm/2.0/mule-vm.xsd">

    <http:connector name="PollingHttpConnector">
        <service-overrides messageReceiver="org.mule.transport.http.PollingHttpMessageReceiver"/>
    </http:connector>

    <vm:connector name="vmQueue" queueEvents="true"/>

    <!--
        This uses the polling HTTP connector every 30 seconds
    -->
    <model name="http polling test model">
        <service name="pollingUMO">
            <inbound>
                <inbound-endpoint address="http://marie:marie@localhost:4567" connector-ref="PollingHttpConnector">
                    <property key="pollingFrequency" value="30000"/>
                </inbound-endpoint>
            </inbound>
            <component class="org.mule.tck.functional.FunctionalTestComponent"/>
            <outbound>
                <outbound-pass-through-router>
                    <outbound-endpoint address="vm://toclient"/>
                </outbound-pass-through-router>
            </outbound>
        </service>
    </model>

</mule>
