<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:util="http://www.springframework.org/schema/util"
       xmlns:mongo="http://www.springframework.org/schema/data/mongo"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
                           http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd 
				           http://www.springframework.org/schema/data/mongo http://www.springframework.org/schema/data/mongo/spring-mongo-1.0.xsd">
	
		<mongo:db-factory id="mongoDbFactory"
		                 host="localhost"
		                 port="27017"
		                 dbname="test-db"/>
		                 
		<bean id="mongoTemplate" class="org.springframework.data.mongodb.core.MongoTemplate">
		  <constructor-arg name="mongoDbFactory" ref="mongoDbFactory"/>
		</bean>
		
		<mongo:repositories base-package="org.statefulj.persistence.mongo" />
</beans>
    
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:util="http://www.springframework.org/schema/util"
       xmlns:mongo="http://www.springframework.org/schema/data/mongo"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
                           http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd 
				           http://www.springframework.org/schema/data/mongo http://www.springframework.org/schema/data/mongo/spring-mongo-1.0.xsd">
	
		<mongo:db-factory id="mongoDbFactory"
		                 host="localhost"
		                 port="37017"
		                 dbname="test-db"/>
		                 
		<bean id="mongoTemplate" class="org.springframework.data.mongodb.core.MongoTemplate">
		  <constructor-arg name="mongoDbFactory" ref="mongoDbFactory"/>
		</bean>
		
		<mongo:repositories base-package="org.statefulj.persistence.mongo" />
</beans>
    
Fix the embedded mongo port
Fix the embedded mongo port
