Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » EMFStore with MySQL instead of MongoDB
EMFStore with MySQL instead of MongoDB [message #1299869] Thu, 17 April 2014 06:56 Go to next message
Annamalai Mising name is currently offline Annamalai Mising nameFriend
Messages: 126
Registered: July 2009
Senior Member
Hello There

I was wondering if there is a possibility to configure EMFStore with
MySQL instead of default MongoDB

Any help in that area would be appreciated.

Regards
Malai
Re: EMFStore with MySQL instead of MongoDB [message #1300414 is a reply to message #1299869] Thu, 17 April 2014 14:56 Go to previous messageGo to next message
Johannes Faltermeier is currently offline Johannes FaltermeierFriend
Messages: 99
Registered: December 2013
Member

Hi,

currently we only support xmi-files and MongoDB as storage.

However by using the org.eclipse.emf.emfstore.server.resourceSetProvider / .client.resourceSetProvider extension points you can add your own storage solution based on the EMF resource abstraction.
For MySQL storage you can take a look at Teneo (https://wiki.eclipse.org/Teneo/Hibernate , https://wiki.eclipse.org/Teneo/Hibernate/EMF_Resource) and try to integrate it with EMFStore.
For this you need to implement the ESResourceSetProvider interface and pass a ResourceSet to EMFStore that will create HibernateXMLResources and has an URIConverter that will map the URIs used by EMFStore to URIs expected by Teneo.
You can take a look at the emfstore.mongodb-plugins to see how this can be done. Oh, and this would make a nice contribution Smile

I hope this will help

Cheers
Johannes


Johannes Faltermeier

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: EMFStore with MySQL instead of MongoDB [message #1309134 is a reply to message #1300414] Tue, 22 April 2014 13:48 Go to previous messageGo to next message
Annamalai Mising name is currently offline Annamalai Mising nameFriend
Messages: 126
Registered: July 2009
Senior Member
Hi

I tried to figure out the MongoDB Support. But was unable to find the
same. Do i need to download seperate plugins for MongoDB or do i get it
has part of the basic installation.

Looking for more pointers. Will definitely be happy to contribute :)

Regards
Malai

On 4/17/2014 8:26 PM, Johannes Faltermeier wrote:
> Hi,
> currently we only support xmi-files and MongoDB as storage.
> However by using the org.eclipse.emf.emfstore.server.resourceSetProvider
> / .client.resourceSetProvider extension points you can add your own
> storage solution based on the EMF resource abstraction. For MySQL
> storage you can take a look at Teneo
> (https://wiki.eclipse.org/Teneo/Hibernate ,
> https://wiki.eclipse.org/Teneo/Hibernate/EMF_Resource) and try to
> integrate it with EMFStore. For this you need to implement the
> ESResourceSetProvider interface and pass a ResourceSet to EMFStore that
> will create HibernateXMLResources and has an URIConverter that will map
> the URIs used by EMFStore to URIs expected by Teneo. You can take a look
> at the emfstore.mongodb-plugins to see how this can be done. Oh, and
> this would make a nice contribution :)
>
> I hope this will help
>
> Cheers
> Johannes
Re: EMFStore with MySQL instead of MongoDB [message #1311118 is a reply to message #1309134] Wed, 23 April 2014 16:04 Go to previous messageGo to next message
Johannes Faltermeier is currently offline Johannes FaltermeierFriend
Messages: 99
Registered: December 2013
Member

Hi,

you can find guidelines on how to get the source code and setup the IDE here: http://eclipse.org/emfstore/gettinginvolved.html
The mongodb plugins are prefixed org.eclipse.emf.emfstore.mongodb.*

The mongoDB feature is not part of the default installation, but is available on the update site under "EMFStore Additional Features".

Regards
Johannes


Johannes Faltermeier

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
[ECP/EMFStore] with MySQL instead of MongoDB [message #1312020 is a reply to message #1311118] Thu, 24 April 2014 04:05 Go to previous messageGo to next message
Annamalai Mising name is currently offline Annamalai Mising nameFriend
Messages: 126
Registered: July 2009
Senior Member
Hello Johannes

Thanks for your reply. I have checkedout the MongoDB feature. It wasnt
part of the Default Installation as written by you. Now i am even more
curious.

I have been evaluating ECP and when i run ECP with EMFStore Repository
plugins doesnt it share them on MongoDB. How does ECP them share its
project using EMFStore, does it use XMI Resource sharing on Workspace or
based on Local History.

Now i am a bit confused. I run the sample ECP Application with EMFStore
and connect to EMFStore using the Model Repositories. It starts the
EMFStore server in the background. But this doesnt start MongoDB and
using XMI based Sharing. Is my understanding rite ??

For starting with MongoDB i need these MongoDB Plugins.

Regards
Malai

On 4/23/2014 9:34 PM, Johannes Faltermeier wrote:
> Hi,
> you can find guidelines on how to get the source code and setup the IDE
> here: http://eclipse.org/emfstore/gettinginvolved.html
> The mongodb plugins are prefixed org.eclipse.emf.emfstore.mongodb.*
>
> The mongoDB feature is not part of the default installation, but is
> available on the update site under "EMFStore Additional Features".
> Regards
> Johannes
Re: [ECP/EMFStore] with MySQL instead of MongoDB [message #1314138 is a reply to message #1312020] Fri, 25 April 2014 07:28 Go to previous messageGo to next message
Johannes Faltermeier is currently offline Johannes FaltermeierFriend
Messages: 99
Registered: December 2013
Member

Hi,

if you haven't included the EMFStore mongodb plugins in your run-configuration the projects will be stored as XMI in your user-home directory in the .emfstore -folder.
In order to store them with mongodb you will have to add the EMFStore mongodb plugins to your runconfig and their dependencies. Those are:
org.eclipselabs.emf.query.simple
org.eclipselabs.mongo
org.eclipselabs.mongo.emf
org.eclipselabs.mongo.emf.builders
org.eclipselabs.mongo.emf.converter
org.eclipselabs.mongo.emf.ext
org.eclipselabs.mongo.emf.query.simple
org.eclipselabs.mongo.emf.streams
org.eclipse.equinox.ds
org.eclipse.equinox.cm
Also make sure that equinox.ds and *.cm have autostart set to true and a start-level of 1.
If you are missing those dependencies in your target platform, take at look at the emfstore.target.
EMFStore expects that there is a running mongodb instance it can connect to. By default it will look for an instance running on the localhost.

Cheers
Johannes


Johannes Faltermeier

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: [ECP/EMFStore] with MySQL instead of MongoDB [message #1329764 is a reply to message #1314138] Sat, 03 May 2014 09:20 Go to previous message
Annamalai Mising name is currently offline Annamalai Mising nameFriend
Messages: 126
Registered: July 2009
Senior Member
Hello Johannes

Thanks for your detailed reply. I will try it out and update you on the
same. Your help is really appreciated.

Regards
Malai

On 4/25/2014 12:58 PM, Johannes Faltermeier wrote:
> Hi,
> if you haven't included the EMFStore mongodb plugins in your
> run-configuration the projects will be stored as XMI in your user-home
> directory in the .emfstore -folder.
> In order to store them with mongodb you will have to add the EMFStore
> mongodb plugins to your runconfig and their dependencies. Those are:
> org.eclipselabs.emf.query.simple
> org.eclipselabs.mongo
> org.eclipselabs.mongo.emf
> org.eclipselabs.mongo.emf.builders
> org.eclipselabs.mongo.emf.converter
> org.eclipselabs.mongo.emf.ext
> org.eclipselabs.mongo.emf.query.simple
> org.eclipselabs.mongo.emf.streams
> org.eclipse.equinox.ds
> org.eclipse.equinox.cm
> Also make sure that equinox.ds and *.cm have autostart set to true and a
> start-level of 1. If you are missing those dependencies in your target
> platform, take at look at the emfstore.target. EMFStore expects that
> there is a running mongodb instance it can connect to. By default it
> will look for an instance running on the localhost.
> Cheers
> Johannes
Previous Topic:[EMFStore] authentication and authorization
Next Topic:[EMFSTORE] Sharing from Eclipse Workspace to EMFStore
Goto Forum:
  


Current Time: Thu Mar 04 13:29:26 GMT 2021

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

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

Back to the top