Skip to main content
selvaganesh
Level 5
Oct 16, 2015 2:28 AM UTC
Solved

Set Read preference for mongoDB

I am using JBoss app server for aem author with mongodb as repository. I want to set the read preference for mongodb. How do i set it from AEM  web.xml

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

Here is a good community article that will help you with AEM and MongoDB:

http://cq-ops.tumblr.com/post/86895378084/how-to-run-aem-6-0-with-mongodb-2-6

To learn how to set read preferences - see:

http://docs.mongodb.org/manual/core/read-preference/

Hope these help you! 

2 replies

selvaganesh
Level 5
Oct 16, 2015 2:28 AM UTC

http://jackrabbit.apache.org/oak/docs/osgi_config.html

I saw that we can send readPreference as parameter to oak.uri. I want to know how can we send in web.xml file of aem.war

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

Here is a good community article that will help you with AEM and MongoDB:

http://cq-ops.tumblr.com/post/86895378084/how-to-run-aem-6-0-with-mongodb-2-6

To learn how to set read preferences - see:

http://docs.mongodb.org/manual/core/read-preference/

Hope these help you! 

Translate