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

	<si:channel id="requests"/>

	<si:channel id="replies"/>

	<jms:inbound-gateway id="gateway"
			request-destination-name="testDestination"
			default-reply-destination="testReplyDestination"
			request-channel="requests"
			reply-channel="replies"/>
			
	<si:service-activator input-channel="requests" output-channel="replies" expression="payload"/>

	
	<bean id="testDestination" class="org.apache.activemq.artemis.jms.client.ActiveMQQueue">
		<constructor-arg value="testDestination"/>
	</bean>
	<bean id="testReplyDestination" class="org.apache.activemq.artemis.jms.client.ActiveMQQueue">
		<constructor-arg value="testReplyDestination"/>
	</bean>

	<util:constant id="jmsConnectionFactory"
				   static-field="org.springframework.integration.jms.ActiveMQMultiContextTests.amqFactory"/>

</beans>
