Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » (CDO-Server) Mongo DB(Setting up a CDO-Server with Mongo DB)
icon5.gif  (CDO-Server) Mongo DB [message #1752250] Fri, 20 January 2017 09:57 Go to next message
Nikolai Reed is currently offline Nikolai ReedFriend
Messages: 2
Registered: January 2017
Junior Member
Im Currently trying to setup a CDO-Server using mongoDB however i cant get it to run.

I created a CDo-Server using the eclipse installer and modified the cdo-server.xml as described her https://wiki.eclipse.org/CDO/MongoDB_Store. However i keep getting the Error "Store factory not found: mongodb" if i try to start the server. Im running MondoDB server 3.4.1 and Debian Jessi

My cdo-server.xml
-------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<cdoServer>

<acceptor type="tcp" listenAddr="0.0.0.0" port="2036"/>

<repository name="prisma">
<property name="overrideUUID" value=""/>
<property name="supportingAudits" value="true"/>
<property name="supportingBranches" value="true"/>
<property name="ensureReferentialIntegrity" value="false"/>
<property name="allowInterruptRunningQueries" value="true"/>
<property name="idGenerationLocation" value="STORE"/>
<property name="serializeCommits" value="false"/>
<property name="optimisticLockingTimeout" value="10000"/>

<store type="mongodb">
<property name="uri" value="mongodb://localhost"/>
<property name="db" value="cdodb"/>
<property name="drop" value="true"/>
</store>
</repository>
</cdoServer>

I think im missing a plugin however i cannot any information on which ones i need or require.
Re: (CDO-Server) Mongo DB [message #1752375 is a reply to message #1752250] Mon, 23 January 2017 07:24 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6338
Registered: July 2009
Senior Member
The Eclipse Installer installs a minimal CDO server, one that only supports the DBStore. To add MongoDB support you could add the following P2 Director task to your user.setup:

<?xml version="1.0" encoding="UTF-8"?>
<setup.p2:P2Task
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    xmlns:setup.p2="http://www.eclipse.org/oomph/setup/p2/1.0"
    label="MongoDB Support">
  <restriction
      xsi:type="setup:Product"
      href="index:/org.eclipse.setup#//@productCatalogs[name='org.eclipse.applications']/@products[name='cdo-server']"/>
  <requirement
      name="org.eclipse.emf.cdo.server.mongodb.feature.group"/>
</setup.p2:P2Task>


The easiest way to do that is to start an Eclipse IDE, select Navigate | Open Setup | User and paste the XML snippet directly into the Setup Editor. Then you need to reinstall the CDO Server product.

Please note that CDO's MongoDB support is experimental.
Re: (CDO-Server) Mongo DB [message #1752391 is a reply to message #1752375] Mon, 23 January 2017 11:17 Go to previous message
Nikolai Reed is currently offline Nikolai ReedFriend
Messages: 2
Registered: January 2017
Junior Member
Thanks for the help and info. Did not know MongoDB support is experimental.
Previous Topic:[CDO] Enforce model consistency between client and server
Next Topic:Generating Ecores/genmodel files for Multiple XSDs programatically
Goto Forum:
  


Current Time: Tue Jan 16 14:10:55 GMT 2018

Powered by FUDForum. Page generated in 0.01702 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software