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

    <model name="Tcp_with_remote_sync">
        <service name="Echo1">
            <inbound>
                <tcp:inbound-endpoint host="localhost" port="6161" remoteSync="true"/>
            </inbound>
            <outbound>
                <outbound-pass-through-router>
                    <tcp:outbound-endpoint host="localhost" port="6162"/>
                </outbound-pass-through-router>
            </outbound>
        </service>

        <service name="Echo2">
            <inbound>
                <tcp:inbound-endpoint host="localhost" port="6163" remoteSync="true"/>
                <forwarding-router/>
            </inbound>
            <outbound>
                <outbound-pass-through-router>
                    <vm:outbound-endpoint path="sync"/>
                </outbound-pass-through-router>
            </outbound>
        </service>

        <service name="testComponent">
            <inbound>
                <tcp:inbound-endpoint host="localhost" port="6162" synchronous="true"/>
                <vm:inbound-endpoint path="sync" synchronous="true"/>
            </inbound>
            <component class="org.mule.tck.testmodels.services.TestComponent"/>
        </service>
    </model>
</mule>
