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

<!-- 
	<management:jmx-default-config/>
	<management:jmx-mx4j-adaptor/>
	<management:yourkit-profiler/>
 -->

	<jms:activemq-connector name="jmsConnectionFactory"
		brokerURL="tcp://localhost:61616" />

	<model name="SampleJmsRouterModel">
		<service name="SampleJmsRouterService">

			<inbound>
				<inbound-endpoint address="jms://Soalabs.Loadtests.In" />
			</inbound>

			<outbound matchAll="true">
				<filtering-router>
					<outbound-endpoint address="jms://Soalabs.Loadtests.Out" />
					<and-filter>
						<message-property-filter caseSensitive="false"
							pattern="SENDER=SENDER-TEST" />
						<message-property-filter caseSensitive="false"
							pattern="MSGTYPE=MSGTYPE-TEST" />
					</and-filter>
				</filtering-router>

				<forwarding-catch-all-strategy>
					<outbound-endpoint address="jms://Soalabs.Deadletter" />
				</forwarding-catch-all-strategy>
			</outbound>

		</service>
	</model>
</mule>

