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

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

	<int-jmx:mbean-export
		default-domain="test.domain"
		object-name-static-properties="intJmxProps"/>

	<util:properties id="intJmxProps">
		<prop key="random">#{new java.util.Random().nextInt()}</prop>
		<prop key="test">test</prop>
	</util:properties>

	<context:mbean-export/>

	<int:recipient-list-router id="rlr" input-channel="x">
		<int:recipient channel="y"/>
	</int:recipient-list-router>

	<int:header-value-router id="hvr" input-channel="x" header-name="ghgf">
		<int:mapping value="foo" channel="y"/>
	</int:header-value-router>

	<int:channel id="x" />
	<int:channel id="y" />

	<int:service-activator input-channel="z" expression="''"/>

	<int:service-activator input-channel="${zz}" expression="''"/>

	<util:properties id="placeholders">
		<prop key="zz">zz</prop>
	</util:properties>

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

</beans>
