<?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"
	xmlns:jmx="http://www.springframework.org/schema/integration/jmx"
	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
			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">

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

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

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

	<int:channel id="testChannel" />

	<int:service-activator id="service" input-channel="testChannel" method="get">
		<bean class="org.springframework.integration.jmx.config.MBeanRegistrationTests$Source"/>
	</int:service-activator>

	<int:logging-channel-adapter id="logger" channel="testChannel"/>

	<int:chain id="chain" input-channel="chainin">
		<int:transformer id="t1" expression="'foo'"/>
		<int:filter id="f1" expression="true"/>
	</int:chain>

	<bean id="org.springframework.integration.MyGateway"
		  class="org.springframework.integration.jmx.config.MBeanRegistrationTests.MyMessagingGateway" />

</beans>
