<?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:mule="http://www.mulesource.org/schema/mule/core/2.0"
      xmlns:jms="http://www.mulesource.org/schema/mule/jms/2.0"
      xsi:schemaLocation="
       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/jms/2.0 http://www.mulesource.org/schema/mule/jms/2.0/mule-jms.xsd">

    <jms:activemq-connector name="jmsConnector"/>

    <model name="test">
        <service name="InputPart">
            <inbound>
                <jms:inbound-endpoint queue="in"/>
            </inbound>
            <component>
                <singleton-object class="org.mule.tck.functional.FunctionalTestComponent"/>
            </component>
            <outbound>
                <outbound-pass-through-router>
                    <jms:outbound-endpoint queue="q1"/>
                </outbound-pass-through-router>
            </outbound>
        </service>

        <service name="MiddlePart">
            <inbound>
                <jms:inbound-endpoint queue="q1"/>
            </inbound>
            <component>
                <singleton-object class="org.mule.tck.functional.FunctionalTestComponent"/>
            </component>
            <outbound>
                <outbound-pass-through-router>
                    <jms:outbound-endpoint queue="q2"/>
                </outbound-pass-through-router>
            </outbound>
        </service>

        <service name="OutputPart">
            <inbound>
                <jms:inbound-endpoint queue="q2"/>
            </inbound>
            <component>
                <singleton-object class="org.mule.tck.functional.FunctionalTestComponent">
                    <property key="returnMessage" value="OUTPUT MESSAGE"/>
                </singleton-object>
            </component>
            <outbound>
                <outbound-pass-through-router>
                    <jms:outbound-endpoint queue="out"/>
                </outbound-pass-through-router>
            </outbound>
        </service>
    </model>
</mule>
