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

    <jms:activemq-connector name="jmsConn" maxRedelivery="1" brokerURL="vm://localhost?broker.persistent=false&amp;broker.useJmx=false">

    </jms:activemq-connector>


    <jboss-transaction-manager/>

    <model name="dev">
        <service name="RollbackComponent">
            <inbound>
                <jms:inbound-endpoint queue="request.queue">
                    <jms:transaction action="BEGIN_OR_JOIN"/>
                </jms:inbound-endpoint>
            </inbound>
            <null-component/>

            <!-- this endpoint should never be invoked because the NullComponent will always
                throw an exception if invoked
            -->
            <outbound>
                <outbound-pass-through-router>
                    <jms:outbound-endpoint queue="out.queue"/>
                </outbound-pass-through-router>
            </outbound>
            <!-- this exception strategy will forward the current message to a jms queue
            and will do so in the current transaction if it is available
            -->
            <default-service-exception-strategy>
                <commit-transaction exception-pattern="*"/>
                <jms:outbound-endpoint queue="DLQ"/>
            </default-service-exception-strategy>
        </service>
    </model>

</mule>

