<?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">

    <!-- This connector will propagate Qos JMS headers -->
    <jms:activemq-connector name="kindConnector" persistentDelivery="false" honorQosHeaders="true"/>

    <!-- This one is bad and disrespectful of message properties :) -->
    <jms:activemq-connector name="selfishConnector" persistentDelivery="false" honorQosHeaders="false"/>

    <model name="QoSHeadersTest">
        <service name="Bridge1">
            <inbound>
                <inbound-endpoint address="jms://test.in.kind" connector-ref="kindConnector"/>
                <forwarding-router/>
            </inbound>
            <outbound>
                <outbound-pass-through-router>
                    <outbound-endpoint address="jms://test.out.kind" connector-ref="kindConnector"/>
                </outbound-pass-through-router>
            </outbound>
        </service>

        <service name="Bridge2">
            <inbound>
                <inbound-endpoint address="jms://test.in.selfish" connector-ref="selfishConnector"/>
                <forwarding-router/>
            </inbound>
            <outbound>
                <outbound-pass-through-router>
                    <outbound-endpoint address="jms://test.out.selfish" connector-ref="selfishConnector"/>
                </outbound-pass-through-router>
            </outbound>
        </service>
    </model>
</mule>
