<?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"
       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/tcp/2.0 http://www.mulesource.org/schema/mule/tcp/2.0/mule-tcp.xsd
       http://www.mulesource.org/schema/mule/core/2.0 http://www.mulesource.org/schema/mule/core/2.0/mule.xsd">
    
    <tcp:connector name="tcpConnector">
        <tcp:streaming-protocol/>
    </tcp:connector>
    
    <model name="main">
        <service name="bridge1">
            <inbound>
                <inbound-endpoint address="file://${mule.working.dir}/test-data/in"/>
            </inbound>
            <outbound>
                <outbound-pass-through-router>
                    <outbound-endpoint address="tcp://localhost:34561"/>
                </outbound-pass-through-router>
            </outbound>
        </service>

        <service name="bridge2">
            <inbound>
                <inbound-endpoint address="tcp://localhost:34561"/>
            </inbound>
            <component class="org.mule.test.integration.streaming.SimpleStreamingBean"/>
            <outbound>
                <multicasting-router>
                    <!--<outbound-endpoint address="stdio://System.out" streaming="true"/>-->
                    <outbound-endpoint address="file://${mule.working.dir}/test-data/out" encoding="UTF8">
                        <property key="outputPattern" value="foo.txt.processed"/>
                    </outbound-endpoint>
                </multicasting-router>
            </outbound>
        </service>
    </model>
</mule>
