<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/integration"
			 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
			 xmlns:beans="http://www.springframework.org/schema/beans"
			 xmlns:int-jmx="http://www.springframework.org/schema/integration/jmx"
			 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">

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

	<int-jmx:mbean-export/>

	<message-history/>

	<service-activator id="gatewayTestService" input-channel="gatewayTestInputChannel" ref="gateway"/>

	<service-activator id="replyingHandlerTestService" input-channel="replyingHandlerTestInputChannel">
		<beans:bean
			class="org.springframework.integration.jmx.ServiceActivatorDefaultFrameworkMethodTests$TestReplyingMessageHandler"/>
	</service-activator>

	<service-activator id="optimizedRefReplyingHandlerTestService"
		input-channel="optimizedRefReplyingHandlerTestInputChannel" ref="testReplyingMessageHandler"/>

	<service-activator id="replyingHandlerWithStandardMethodTestService"
		 input-channel="replyingHandlerWithStandardMethodTestInputChannel"
		 method="handleMessage">
		 <beans:bean id="innerReplyingHandler"
			class="org.springframework.integration.jmx.ServiceActivatorDefaultFrameworkMethodTests$TestReplyingMessageHandler"/>
	</service-activator>

	<service-activator id="replyingHandlerWithOtherMethodTestService"
		 input-channel="replyingHandlerWithOtherMethodTestInputChannel"
		 method="foo">
		 <beans:bean id="innerReplyingHandlerFoo"
			class="org.springframework.integration.jmx.ServiceActivatorDefaultFrameworkMethodTests$TestReplyingMessageHandler"/>
	</service-activator>

	<service-activator id="handlerTestService" input-channel="handlerTestInputChannel">
		<beans:bean id="innerHandler"
			class="org.springframework.integration.jmx.ServiceActivatorDefaultFrameworkMethodTests$TestMessageHandler"/>
	</service-activator>

	<service-activator id="processorTestService" input-channel="processorTestInputChannel" ref="testMessageProcessor"/>

	<gateway id="gateway" default-request-channel="requestChannel" default-reply-channel="replyChannel"/>

	<channel id="requestChannel"/>

	<bridge id="bridge" input-channel="requestChannel" output-channel="replyChannel"/>

	<channel id="replyChannel">
		<queue/>
	</channel>

	<beans:bean id="testReplyingMessageHandler"
		class="org.springframework.integration.jmx.ServiceActivatorDefaultFrameworkMethodTests$TestReplyingMessageHandler"/>

	<beans:bean id="testMessageProcessor" class="org.springframework.integration.jmx.ServiceActivatorDefaultFrameworkMethodTests$TestMessageProcessor">
		<beans:property name="prefix" value="foo"/>
	</beans:bean>

</beans:beans>
