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

	<context:property-placeholder />

	<stream:stdin-channel-adapter id="stdin" channel="mcOutputChannel" >
		<poller fixed-delay="100" />
	</stream:stdin-channel-adapter>

	<channel id="mcInputChannel"/>

	<channel id="mcOutputChannel" />

	<service-activator input-channel="mcInputChannel"
	                   output-channel="mcOutputChannel"
	                   ref="testIp"
	                   method="testIp"/>

	<ip:udp-outbound-channel-adapter id="mcUdpSender"
		multicast="true"
		time-to-live="2"
		host="225.6.7.8"
		port="${port}"
		check-length="true"
		acknowledge="true"
		ack-host="localhost"
		ack-port="0"
		ack-timeout="10000"
		channel="mcOutputChannel"/>

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

</beans:beans>
