<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesource.org/schema/mule/core/2.2"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:vm="http://www.mulesource.org/schema/mule/vm/2.2"
    xmlns:jms="http://www.mulesource.org/schema/mule/jms/2.2"
    xsi:schemaLocation="
               http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
               http://www.mulesource.org/schema/mule/core/2.2 http://www.mulesource.org/schema/mule/core/2.2/mule.xsd
               http://www.mulesource.org/schema/mule/vm/2.2 http://www.mulesource.org/schema/mule/vm/2.2/mule-vm.xsd
               http://www.mulesource.org/schema/mule/jms/2.2 http://www.mulesource.org/schema/mule/jms/2.2/mule-jms.xsd">

    <custom-transformer name="SetLendersAsRecipients"
                        class="org.mule.example.loanbroker.transformers.SetLendersAsRecipients"/>
    <custom-transformer name="ObjectToJMSMessage"
                        class="org.mule.transport.jms.transformers.ObjectToJMSMessage"/>
    <custom-transformer name="JMSMessageToObject"
                        class="org.mule.transport.jms.transformers.JMSMessageToObject"/>

    <jms:activemq-connector name="default"/>
    
    <jms:activemq-connector name="noOutbound">
        <service-overrides responseTransformer="org.mule.transformer.NoActionTransformer"/>
    </jms:activemq-connector>

    <model name="test">
        <service name="test service">
            <inbound>
                <jms:inbound-endpoint queue="in" synchronous="true" connector-ref="noOutbound"
                                  transformer-refs="JMSMessageToObject SetLendersAsRecipients ObjectToJMSMessage"/>
            </inbound>
            <component class="org.mule.example.loanbroker.issues.SimpleEchoComponent"/>
        </service>
    </model>

</mule>

