<?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-jms="http://www.springframework.org/schema/integration/jms"
	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">

	<int:gateway default-request-channel="jmsIn"/>

	<int-jms:outbound-gateway request-channel="jmsIn"
		connection-factory="jmsConnectionFactory"
		receive-timeout="10000"
		request-destination="siOutQueue">
		<int-jms:reply-listener />
	</int-jms:outbound-gateway>

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

	<bean id="jmsConnectionFactory" class="org.springframework.jms.connection.CachingConnectionFactory">
		<property name="targetConnectionFactory"
				  value="#{T(org.springframework.integration.jms.ActiveMQMultiContextTests).amqFactory}"/>
		<property name="cacheProducers" value="true" />
		<property name="cacheConsumers" value="true" />
		<property name="sessionCacheSize" value="10" />
	</bean>

</beans>
