Tuesday, July 12, 2011

MULE - Wire tap router

The WireTap inbound router allows you to route certain messages to a different endpoint as well as to the component.


    <stdio:connector name="stdioInConnector"
        outputMessage="Data : " promptMessage="Enter : " />


    <model>
        <service name="StdioService">
            <inbound>
                <stdio:inbound-endpoint system="IN"
                    connector-ref="stdioInConnector" />
                <wire-tap-router>
                    <vm:outbound-endpoint path="logInputMessage" />
                </wire-tap-router>
            </inbound>
            <echo-component />
        </service>


        <service name="LogService">
            <inbound>
                <vm:inbound-endpoint path="logInputMessage" />
            </inbound>
            <component class="org.mybusiness.components.EchoingComponent" />
        </service>
    </model>

No comments:

Post a Comment