Jump to: navigation, search

CDO/MongoDB Store

Revision as of 10:55, 22 February 2011 by Stepper.esc-net.de (Talk | contribs)

The CDO MongoDB store is an implementation of a CDO Store that allows to store models and meta models to MongoDB databases.

The current implementation supports all CDO 4.0 features with the following exceptions:

  • NoExternalReferences (hence no meta references)
  • NoQueryXRefs (hence no ensureReferentialIntegrity)
  • NoLargeObjects
  • NoFeatureMaps
  • NoHandleRevisions
  • NoRawAccess (hence no offline support)
  • NoBranching
  • NoCrashRecovery

This document will help users setup their environment and configure CDO to work with MongoDB.


As the legal review is still pending as of now the CDO MongoDBStore can not be contributed to the CDO SDK. Consequently it is not yet part of the (Indigo) release train. But it is installable from the CDO Downloads page.

The MongoDB driver bundle is available at, e.g., http://net4j.sourceforge.net/update. Ensure that you either install it 'before you try to install the CDO MongoDBStore or at least add this URL to the list of enabled software sites in your p2 preferences. Please also note that currently the MongoDB 2.4 OSGi bundle that is available on MongoDB's own pages has incorrect manifest entries. Please vote for http://jira.mongodb.org/browse/JAVA-272.


The type identifier of the store configuration is "mongodb":

 <store type="mongodb">
   <property name="uri" value="mongodb://localhost"/>
   <property name="db" value="specificDB"/>
   <property name="drop" value="false"/>

The "db" property is optional. If omitted, the repository name is used as MongoDB database name.

The "drop" property is optional. If the value is "true" the MongoDB database is dropped before the store is activated.

Wikis: CDO | Net4j | EMF | Eclipse