What version are you using? (Morphia/Driver/MongoDB)
mongodb-win32-i386-2.0.2
Please include a stack trace below:
This is not related to stack trace
Question:
We are instantiating Mongo in Spring as show below
Now we have 3 instances of Mongod running as part of replicasets. How to
communicate to Morphia/Mongo to use replicate set.
Meaning what changes we need to make below to use above replicasets
<bean id="morphia" class="com.google.code.morphia.Morphia" />
<bean id="datastore" factory-bean="morphia" factory-method="createDatastore">
<constructor-arg ref="mongo" />
<constructor-arg value="${myprojectname.mongo.db.name}" />
</bean>
<bean id="mongo" class="com.mongodb.Mongo">
<constructor-arg value="${mongo.db.host}" type="java.lang.String" />
<constructor-arg value="${mongo.db.port}" type="int" />
</bean>
Original issue reported on code.google.com by javakish...@gmail.com on 26 Sep 2012 at 6:51
Original issue reported on code.google.com by
javakish...@gmail.com
on 26 Sep 2012 at 6:51