SLING-5024 Sling NoSQL Resource Provider for MongoDB (based on nosql.generic)

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1703061 13f79535-47bb-0310-9956-ffa450edef68
6 files changed
tree: 57432656d7d80905fd23fd56119a5c4400078ba0
  1. src/
  2. pom.xml
  3. README.md
README.md

Apache Sling NoSQL MongoDB Resource Provider

Sling ResourceProvider implementation that uses MongoDB NoSQL database as persistence.

Based on the “Apache Sling NoSQL Generic Resource Provider”.

Configuration on deployment

  • Create a factory configuration for “Apache Sling NoSQL MongoDB Resource Provider Factory” to define the root of the resource tree that should be stored in MongoDB, and MongoDB connection string, database name and collection name.

Run integration tests

To run the integration tests you have to set up a real MongoDB server and run the tests with this command line (inserting the correct parameters):

mvn -Pmongodb-integration-test -DconnectionString=localhost:27017 -Ddatabase=sling -Dcollection=resources integration-test