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

	<int:gateway id="requestGateway" 
					service-interface="org.springframework.integration.samples.barrier.RequestGateway"
					default-request-channel="requestChannel"/>
	
	<int:channel id="requestChannel"/>

	<int-http:outbound-gateway request-channel="requestChannel" 
					url="#{url}"
					http-method="POST"
					expected-response-type="java.lang.String"/>

	<beans profile="default">
		<bean id="url" class="java.lang.String">
			<constructor-arg value="http://localhost:8080/postGateway" />
		</bean>
	</beans>

</beans>
