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

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

    <model name="test">
        <service name="DeadLetter">
            <inbound>
                <jms:inbound-endpoint queue="in">
                    <jms:transaction action="ALWAYS_BEGIN"/>
                </jms:inbound-endpoint>
            </inbound>
            <!--<test:component throwException="true"-->
            <component>
                <singleton-object class="org.mule.tck.functional.FunctionalTestComponent">
                    <property key="returnMessage" value="OUTPUT MESSAGE"/>
                    <property key="throwException" value="true"/>                    
                </singleton-object>
            </component>
            <outbound>
                <outbound-pass-through-router>
                    <jms:outbound-endpoint queue="out">
                        <jms:transaction action="ALWAYS_JOIN"/>
                    </jms:outbound-endpoint>
                </outbound-pass-through-router>
            </outbound>
            <default-service-exception-strategy>
                <commit-transaction exception-pattern="*"/>
                <jms:outbound-endpoint queue="dead.letter">
                    <jms:transaction action="ALWAYS_JOIN"/>
                </jms:outbound-endpoint>
            </default-service-exception-strategy>
        </service>
    </model>
</mule>
