<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:integration="http://www.springframework.org/schema/integration"
	xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop"
	xmlns:tx="http://www.springframework.org/schema/tx" xmlns:p="http://www.springframework.org/schema/p" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
		http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
		http://www.springframework.org/schema/integration
                                 http://www.springframework.org/schema/integration/spring-integration.xsd
		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">

	<integration:annotation-config />

	<integration:channel id="requests" />
	<integration:channel id="transforms" />
	<integration:channel id="replies" />

	<integration:gateway service-interface="org.springframework.batch.item.ItemProcessor" id="processor" default-reply-timeout="10"
		default-request-timeout="100" default-request-channel="requests" default-reply-channel="replies" />

	<integration:service-activator input-channel="requests" output-channel="transforms" ref="activator" />
	<integration:service-activator input-channel="transforms" output-channel="replies" ref="activator" />

	<bean id="activator" class="org.springframework.batch.integration.item.MessagingGatewayIntegrationTests$Activator" />

	<integration:gateway service-interface="org.springframework.batch.item.ItemWriter" id="writer"
		default-request-timeout="100" default-request-channel="inputs" />

	<integration:channel id="inputs" />
	<integration:channel id="outputs" />
	<integration:splitter input-channel="inputs" output-channel="outputs" ref="splitter" />
	<integration:service-activator input-channel="outputs" ref="service" />

	<bean id="splitter" class="org.springframework.batch.integration.item.MessagingGatewayIntegrationTests$SplitService" />
	<bean id="service" class="org.springframework.batch.integration.item.MessagingGatewayIntegrationTests$EndService" />

</beans>