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

	<util:properties id="props">
		<prop key="container.class">org.springframework.integration.jms.config.JmsMessageDrivenChannelAdapterParserTests$FooContainer</prop>
	</util:properties>

	<context:property-placeholder properties-ref="props"/>

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

	<jms:message-driven-channel-adapter id="adapterWithIdleConsumerLimit2"
						 connection-factory="testConnectionFactory"
						 destination-name="testQueue"
						 container-class="#{props['container.class']}"
						 idle-consumer-limit="33"
						 cache-level="3"
						 auto-startup="false" />

	<!-- no id -->
	<jms:message-driven-channel-adapter channel="in"
						 connection-factory="testConnectionFactory"
						 destination-name="testQueue"
						 container-class="#{props['container.class']}"
						 idle-consumer-limit="33"
						 cache-level="3"
						 auto-startup="false" />

	<si:channel id="in" />

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