<?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: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"/>
    
    <model name="InjectionProblem">
        <service name="pojo1">
            <inbound>
                <inbound-endpoint address="vm://pojo1" remoteSync="true" remoteSyncTimeout="10000"/>
            </inbound>
            <echo-component/>
            <outbound>
                <outbound-pass-through-router>
                    <outbound-endpoint address="jms://pojo2"/>
                </outbound-pass-through-router>
            </outbound>
            <async-reply timeout="7000">
                <inbound-endpoint address="jms://response"/>
                <single-async-reply-router/>
            </async-reply>
        </service>

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

        <service name="pojo3">
            <inbound>
                <inbound-endpoint address="jms://pojo3"/>
            </inbound>
            <component class="org.mule.tck.testmodels.services.TestReceiver"/>
        </service>

    </model>
</mule>
