<?xml version="1.0" encoding="ISO-8859-1"?>
<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:jms="http://www.mulesource.org/schema/mule/jms/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/jms/2.0 http://www.mulesource.org/schema/mule/jms/2.0/mule-jms.xsd">

    <!-- Testing with ActiveMq -->
    <jms:activemq-connector name="jmsConnector" specification="1.1" />

    <model name="InjectionProblem">
        <service name="pojo1">
            <inbound>
                <inbound-endpoint address="vm://pojo1" synchronous="true" />
            </inbound>
            <echo-component />
            <outbound>
                <outbound-pass-through-router enableCorrelation="NEVER">
                    <outbound-endpoint address="jms://pojo2" remoteSync="true" />
                </outbound-pass-through-router>
            </outbound>
        </service>

        <service name="pojo2">
            <inbound>
                <inbound-endpoint address="jms://pojo2" remoteSync="false" />
            </inbound>
            <echo-component />
            <outbound>
                <outbound-pass-through-router>
                    <outbound-endpoint address="jms://pojo3" />
                </outbound-pass-through-router>
            </outbound>
            <async-reply timeout="7000">
                <inbound-endpoint address="jms://response" />
                <single-async-reply-router />
            </async-reply>
        </service>

        <service name="pojo3">
            <inbound>
                <inbound-endpoint address="jms://pojo3" />
            </inbound>
            <echo-component />
            <outbound>
                <outbound-pass-through-router>
                    <outbound-endpoint address="jms://pojo4" />
                    <reply-to address="jms://response" />
                </outbound-pass-through-router>
            </outbound>
        </service>

        <!-- This component will append " Received" to the message so we know we're getting the correct one -->
        <service name="pojo4">
            <inbound>
                <inbound-endpoint address="jms://pojo4"/>
            </inbound>
            <component class="org.mule.tck.testmodels.services.TestReceiver"/>
        </service>
    </model>
</mule>



