<?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"
	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">

	<jms:message-driven-channel-adapter id="adapterWithReceiveTimeout"
					 	 connection-factory="testConnectionFactory"
		 			 	 destination-name="testQueue"
		 				 receive-timeout="1111"
		 				 auto-startup="false"/>

	<jms:message-driven-channel-adapter id="adapterWithRecoveryInterval"
					 	 connection-factory="testConnectionFactory"
		 			 	 destination-name="testQueue"
		 				 recovery-interval="2222"
		 				 auto-startup="false"/>

	<jms:message-driven-channel-adapter id="adapterWithIdleTaskExecutionLimit"
					 	 connection-factory="testConnectionFactory"
		 			 	 destination-name="testQueue"
		 				 idle-task-execution-limit="7"
		 				 auto-startup="false"/>

	<jms:message-driven-channel-adapter id="adapterWithIdleConsumerLimit"
					 	 connection-factory="testConnectionFactory"
		 			 	 destination-name="testQueue"
		 				 idle-consumer-limit="33"
		 				 cache-level="3"
		 				 auto-startup="false" />

	<bean id="testConnectionFactory" class="org.springframework.jms.connection.SingleConnectionFactory">
		<constructor-arg>
			<bean class="org.springframework.integration.jms.StubConnection">
				<constructor-arg value="message-driven-test"/>
			</bean>
		</constructor-arg>
	</bean>

</beans>
