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

	<int:inbound-channel-adapter channel="toControlBus" auto-startup="false"
		expression="@integrationMbeanExporter.stopActiveComponents(100)" />

	<int:channel id="toControlBus" />

	<int:control-bus input-channel="toControlBus" />

	<int-jmx:mbean-export id="integrationMbeanExporter"
		default-domain="self-destruct" />

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

	<int:poller default="true" fixed-delay="100" />

	<bean id="activeChannel" class="org.springframework.integration.monitor.MBeanExporterIntegrationTests$ActiveChannelImpl" />

	<task:scheduler id="someScheduler" />

	<task:executor id="someExecutor" />

	<bean id="nonSpringExecutor" class="java.util.concurrent.Executors" factory-method="newSingleThreadExecutor" />

	<bean id="otherActiveComponent" class="org.springframework.integration.monitor.MBeanExporterIntegrationTests$OtherActiveComponent">
		<property name="outputChannel" ref="nullChannel" />
	</bean>

</beans>
