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

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

	<ip:tcp-inbound-gateway id="gatewayCrLf"
		connection-factory="crLfServer"
		request-channel="toSA" />

	<ip:tcp-inbound-gateway id="gatewayStxEtx"
		connection-factory="stxEtxServer"
		request-channel="toSA" />

	<ip:tcp-inbound-gateway id="gatewayLength"
		connection-factory="lengthHeaderServer"
		request-channel="toSA" />

	<ip:tcp-inbound-gateway id="gatewaySerialized"
		connection-factory="javaSerialServer"
		request-channel="toSA" />

	<ip:tcp-inbound-gateway id="gatewayCrLfNio"
		connection-factory="crLfServerNio"
		request-channel="toSA" />

	<ip:tcp-inbound-gateway id="gatewayStxEtxNio"
		connection-factory="stxEtxServerNio"
		request-channel="toSA" />

	<ip:tcp-inbound-gateway id="gatewayLengthNio"
		connection-factory="lengthHeaderServerNio"
		request-channel="toSA" />

	<ip:tcp-inbound-gateway id="gatewaySerializedNio"
		connection-factory="javaSerialServerNio"
		request-channel="toSA" />

	<channel id="toSA" />

	<service-activator id="SA"
		input-channel="toSA"
		ref="service"
		method="test"
	/>

	<beans:bean id="service" class="org.springframework.integration.ip.tcp.TestService" />

</beans:beans>
