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

    <vm:connector name="defaultVm"/>
    <vm:connector name="queue" queueEvents="true"/>
    <smtp:connector name="smtp"/>

    <model name="main">
        <service name="default config">
            <inbound>
                <vm:inbound-endpoint path="in-default" connector-ref="defaultVm"/>
            </inbound>
            <outbound>
                <exception-based-router>
                    <!-- this doesn't exist -->
                    <smtp:outbound-endpoint user="error" host="localhost" port="65040" connector-ref="smtp"/>
                    <vm:outbound-endpoint path="out-default" connector-ref="queue"/>
                </exception-based-router>
            </outbound>
        </service>
    </model>

</mule>
