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

    <model name="JdbcSelectOnOutbound">
        <service name="bridge">
            <inbound>
                <inbound-endpoint address="vm://jdbc.test"/>
            </inbound>
            <outbound>
                <outbound-pass-through-router>
                    <jdbc:outbound-endpoint queryKey="getTest">
                        <!-- this is substituted in the SQL template defined in jdbc-connector.xml -->
                        <property key="type" value="1"/>
                    </jdbc:outbound-endpoint>
                </outbound-pass-through-router>
            </outbound>
        </service>

        <service name="bridgeA">
            <inbound>
                <inbound-endpoint address="vm://terra"/>
            </inbound>
            <outbound>
                <outbound-pass-through-router>
                    <jdbc:outbound-endpoint address="jdbc://getTestPayload"/>
                </outbound-pass-through-router>
            </outbound>
        </service>
    </model>
</mule>
