<?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-mongodb="http://www.springframework.org/schema/integration/mongodb"
	   xsi:schemaLocation="http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd
		http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/integration/mongodb https://www.springframework.org/schema/integration/mongodb/spring-integration-mongodb.xsd">

	<bean id="mongoDbFactory" class="org.springframework.integration.mongodb.MongoDbContainerTest"
		  factory-method="createMongoDbFactory"/>

	<int-mongodb:inbound-channel-adapter id="mongoInboundAdapter"
										 channel="replyChannel"
										 query="{'name' : 'Bob'}"
										 query-expression="''"
										 auto-startup="false">
		<int:poller fixed-rate="5000"/>
	</int-mongodb:inbound-channel-adapter>

	<int:channel id="replyChannel">
		<int:queue/>
	</int:channel>

</beans>
