<?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:context="http://www.springframework.org/schema/context"
	xmlns:jmx="http://www.springframework.org/schema/integration/jmx"
	xmlns:util="http://www.springframework.org/schema/util"
	xmlns:tx="http://www.springframework.org/schema/tx"
	xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd
		http://www.springframework.org/schema/integration/jmx https://www.springframework.org/schema/integration/jmx/spring-integration-jmx.xsd
		http://www.springframework.org/schema/tx https://www.springframework.org/schema/tx/spring-tx.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"/>

	<context:mbean-export server="mbs" default-domain="test.custom"/>

	<jmx:mbean-export server="mbs" default-domain="test.custom"/>

	<context:property-placeholder properties-ref="props" />

	<util:properties id="props">
		<prop key="customChannelName">custom:type=MessageChannel,name=foo</prop>
		<prop key="customHandlerName">custom:type=MessageHandler,name=foo</prop>
		<prop key="customSourceName">custom:type=MessageSource,name=foo</prop>
		<prop key="customRouterName">custom:type=MessageRouter,name=foo</prop>
	</util:properties>

	<tx:annotation-driven />

	<bean id="customChannel"
		class="org.springframework.integration.jmx.config.CustomObjectNameTests.ChannelWithCustomObjectName"/>

	<bean id="customHandler"
		class="org.springframework.integration.jmx.config.CustomObjectNameTests.HandlerWithCustomObjectName"/>

	<bean id="customSource"
		class="org.springframework.integration.jmx.config.CustomObjectNameTests.SourceWithCustomObjectName"/>

	<bean id="customRouter"
		class="org.springframework.integration.jmx.config.CustomObjectNameTests.RouterWithCustomObjectName"/>

	<bean id="standardHandler"
		class="org.springframework.integration.jmx.config.CustomObjectNameTests.HandlerWithStandardObjectName"/>

	<bean id="txConfig"
		class="org.springframework.integration.jmx.config.CustomObjectNameTests.TxConfig"/>

</beans>
