<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	   xmlns:si="http://www.springframework.org/schema/integration"
	   xmlns:jmx="http://www.springframework.org/schema/integration/jmx"
	   xmlns:util="http://www.springframework.org/schema/util"
	   xsi:schemaLocation="http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd
		http://www.springframework.org/schema/integration/jmx https://www.springframework.org/schema/integration/jmx/spring-integration-jmx.xsd
		http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/util https://www.springframework.org/schema/util/spring-util.xsd">

	<bean id="mbs" class="org.springframework.jmx.support.MBeanServerFactoryBean"/>

	<si:channel id="testChannel"/>

	<jmx:mbean-export id="integratioMbeanExporter"
					  server="mbs"
					  default-domain="tests.MBeanExpoerterParser"
					  object-name-static-properties="appProperties"
					  object-naming-strategy="keyNamer"
					  managed-components="\!excluded, f*, b*, q*, t*" />

	<si:management default-logging-enabled="false"/>

	<util:properties id="appProperties">
		<prop key="foo">foo</prop>
		<prop key="bar">bar</prop>
	</util:properties>

	<bean id="keyNamer" class="org.springframework.jmx.export.naming.KeyNamingStrategy" />

	<si:channel id="foo" />

	<si:channel id="bar" />

	<si:channel id="baz" />

	<si:channel id="qux" />

	<si:channel id="fiz" />

	<si:channel id="buz" />

	<si:channel id="!excluded" />

	<si:transformer id="transformer" input-channel="foo" expression="payload" />

</beans>
