<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE mule-configuration PUBLIC "-//SymphonySoft //DTD mule-configuration XML V1.0//EN"
                                "http://www.symphonysoft.com/dtds/mule/mule-configuration.dtd">

<mule-configuration id="Mule_Samples" version="1.0">
    <!--
           All transformers must be defined here.  For this example we have two transformers
           used to transform the inbound events for the Greeter and Chatter components into
           objects they understand.  The entryPointResolver configured on the Model below will
           determine which method to call on our components based on the return types of these
           transformers.
       -->
    <transformers>
        <transformer name="StringToNameString" className="org.mule.samples.hello.StringToNameString"
            returnClass="org.mule.samples.hello.NameString"/>
        <transformer name="NameStringToChatString" className="org.mule.samples.hello.NameStringToChatString"
            returnClass="org.mule.samples.hello.ChatString"/>
    </transformers>

    <!--
        A Mule descriptor defines all the necessary information about how your components will
        interact with the framework, other components in the system and external sources.
        Please refer to the Configuration Guide for a full description of all the parameters.
    -->
    <mule-descriptor name="GreeterUMO" implementation="org.mule.samples.hello.Greeter">
        <inbound-router>
            <endpoint address="vm://greeter" transformers="StringToNameString"/>
            <endpoint address="servlet://greeter" transformers="StringToNameString"/>
        </inbound-router>
        <outbound-router>
            <router className="org.mule.routing.outbound.OutboundPassThroughRouter">
                <endpoint address="vm://chitchatter"/>
            </router>
        </outbound-router>
    </mule-descriptor>

    <mule-descriptor name="ChitChatUMO" implementation="org.mule.samples.hello.ChitChatter">
        <inbound-router>
            <endpoint address="vm://chitchatter" transformers="NameStringToChatString"/>
        </inbound-router>
    </mule-descriptor>
</mule-configuration>
