slaveOk for MongoOption in Salat

20 views
Skip to first unread message

Puneet Jain

unread,
Apr 17, 2013, 2:58:28 PM4/17/13
to scala...@googlegroups.com
Hi,

I am using leon play-salat plugin for my application. We have a 3 machine replica for mongo db. I need to configuration my salat plugin to read from slave. I found an option in MongoOptions at http://api.mongodb.org/java/2.8.0/com/mongodb/MongoOptions.html#slaveOk, but the documentation say, it's already been deprecated and use "com.mongodb.ReadPreference.SECONDARY". I was looking for to set the ReadPreference in play-plugin configuration(application.conf) but couldn't find.

Somebody please help me how can I set this configuration.

The environment I am using:
Scala: 2.10
Play: 2.1.0
Play-Salat-plugin: 1.2
Salat: 1.9.2-Snapshot
mongodb: 2.2.3

Thanks,
Puneet Jain

rose katherine toomey

unread,
Apr 17, 2013, 3:15:02 PM4/17/13
to scala-salat

Hi Puneet, please send these questions to the mongo user group. Salat is not involved with your read preferences.

Thanks,
Rose

--
You received this message because you are subscribed to the Google Groups "scala-salat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-salat...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages