<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
			 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
			 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

	<bean id="mongoClient" class="org.springframework.data.mongodb.core.ReactiveMongoClientFactoryBean">
		<property name="host" value="127.0.0.1"/>
		<property name="port" value="27017"/>
	</bean>

	<bean id="reactiveMongoDbFactory" class="org.springframework.data.mongodb.core.SimpleReactiveMongoDatabaseFactory">
		<constructor-arg name="mongoClient" ref="mongoClient"/>
		<constructor-arg name="databaseName" value="reactive"/>
	</bean>

	<bean id="reactiveMongoTemplate" class="org.springframework.data.mongodb.core.ReactiveMongoTemplate">
		<constructor-arg ref="reactiveMongoDbFactory"/>
	</bean>

</beans>
