<?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:int="http://www.springframework.org/schema/integration"
	xsi:schemaLocation="http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd
		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">

	<bean id="foo" class="org.springframework.integration.monitor.MBeanExporterIntegrationTests$MetricFactoryBean">
		<property name="channel" ref="anonymous"/>
	</bean>

	<import resource="common-context.xml" />

	<int:channel id="anonymous">
		<int:queue />
	</int:channel>
	
	<bean id="auto" class="org.springframework.jmx.export.annotation.AnnotationMBeanExporter">
		<property name="defaultDomain" value="org.springframework.integration"/>
		<property name="beans">
			<map>
				<entry key="com.foo:type=Foo,name=foo" value-ref="foo" />
			</map>
		</property>
		<property name="server" ref="mbeanServer" />
	</bean>

</beans>
