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

	<mongo:db-factory id="first" mongo-ref="mongo" write-concern="rack1" />

	<mongo:mongo id="mongo">
		<mongo:options max-auto-connect-retry-time="27" />
	</mongo:mongo>
	
	<mongo:db-factory id="second" write-concern="REPLICAS_SAFE" />
	
	<!-- now part of the namespace
	<bean class="org.springframework.beans.factory.config.CustomEditorConfigurer">
	  <property name="customEditors">
	    <map>
	      <entry key="com.mongodb.WriteConcern" value="org.springframework.data.mongodb.config.WriteConcernPropertyEditor"/>
	    </map>
	  </property>
	</bean>
	-->
	
</beans>