<?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="foobar" version="1.0">

	<description>foobar</description>

	<mule-environment-properties>
		<threading-profile maxThreadsActive="1" maxThreadsIdle="1"/>
	</mule-environment-properties>

	<transaction-manager
		factory="org.mule.extras.jotm.JotmTransactionManagerFactory"/>

	<agents>
		<!-- starts an RMI registry on the default port 1099. -->
		<agent name="RMI" className="org.mule.management.agents.RmiRegistryAgent"/>
		<agent name="JMX" className="org.mule.management.agents.JmxAgent">
			<properties>
				<property name="connectorServerUrl" value="service:jmx:rmi:///jndi/rmi://localhost:1099/server"/>
				<map name="connectorServerProperties">
					<property name="jmx.remote.jndi.rebind" value="true"/>
				</map>
			</properties>
		</agent>
	</agents>

	<connector name="jmsConnector"
		className="org.mule.providers.jms.JmsConnector">
		<properties>
			<property name="specification" value="1.1" />
			<property name="connectionFactoryJndiName"
				value="ConnectionFactory" />
			<property name="jndiInitialFactory"
				value="org.apache.activemq.jndi.ActiveMQInitialContextFactory" />
			<map name="connectionFactoryProperties">
				<property name="brokerXmlConfig"
					value="classpath:/conf/activemq/activemq.xml" />
			</map>
		</properties>
	</connector>



	<model name="Foobar">

		<!-- Settlement requester UMO -->
		<mule-descriptor name="Foobar"
			implementation="org.mule.components.simple.LogComponent" initialState="stopped">
			<inbound-router>
				<endpoint address="jms://fooqueue?method=log">
					<transaction action="BEGIN_OR_JOIN"
						factory="org.mule.providers.jms.JmsTransactionFactory"
						timeout="60000"/>
					<properties>
						<property name="initialStarted" value="false"/>
					</properties>
				</endpoint>
			</inbound-router>
		</mule-descriptor>

	</model>

</mule-configuration>