Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » CDO persisting to the filesystem(Can CDO use the filesystem out-of-the-box?)
CDO persisting to the filesystem [message #496014] Sat, 07 November 2009 01:40 Go to next message
Richard Catlin is currently offline Richard CatlinFriend
Messages: 50
Registered: July 2009
Member
Does CDO persist EMF Models to the filesystem out-of-the-box or do you have to write an extension?

If it does, I assume CDO handles the transactions and prevents two processes from writing to the same XMI file at the same time. Would this be a correct assumption?

Thanks for any info.

Richard Catlin
Re: CDO persisting to the filesystem [message #496020 is a reply to message #496014] Sat, 07 November 2009 07:20 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Richard,

Comments below...



Richard Catlin schrieb:
> Does CDO persist EMF Models to the filesystem out-of-the-box
No.

> or do you have to write an extension?
Yes, you could. There is a manual page about writing custom IStore
implementations:
http://www.eclipse.org/cdo/documentation/manual_20.php?topic =extenders/developing_custom_stores

Bernd Kolb and I started initial work on an XML based FileStore but then
postponed it because we realized that external editing of these files
would corrupt them from a CDO perspective. CDO system infos would have
to be maintained in separate files and would get out of sync with the
model files. You can checkout this effort from:

:extssh:dev.eclipse.org:/cvsroot/modeling

org.eclipse.emf/org.eclipse.emf.cdo/develop/incubation/org.e clipse.emf.cdo.server.file

Beware, it does not fully compile because it was based on an older
version of CDO. But the main concepts are still valid.

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: CDO persisting to the filesystem [message #496279 is a reply to message #496020] Mon, 09 November 2009 15:31 Go to previous messageGo to next message
Rencana Tarigan is currently offline Rencana TariganFriend
Messages: 56
Registered: July 2009
Location: Bandung, Indonesia
Member

Hi eike, i can't create new project from cvs :
:extssh:dev.eclipse.org:/cvsroot/modeling

org.eclipse.emf/org.eclipse.emf.cdo/develop/incubation/org.e clipse.emf.cdo.server.file

i think it's required username and password.
Thanks,


Re: CDO persisting to the filesystem [message #496397 is a reply to message #496279] Mon, 09 November 2009 21:16 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Rencana Tarigan schrieb:
> Hi eike, i can't create new project from cvs :
> :extssh:dev.eclipse.org:/cvsroot/modeling
Please try :pserver:anonymous@dev.eclipse.org:/cvsroot/modeling

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper


>
> org.eclipse.emf/org.eclipse.emf.cdo/develop/incubation/org.e
> clipse.emf.cdo.server.file
>
> i think it's required username and password.
> Thanks,


Re: CDO persisting to the filesystem [message #496663 is a reply to message #496397] Tue, 10 November 2009 20:27 Go to previous messageGo to next message
Rencana Tarigan is currently offline Rencana TariganFriend
Messages: 56
Registered: July 2009
Location: Bandung, Indonesia
Member

Hi Eike,
Thanks for reply it, and i success to pull the source...
But i have some error because can't found class and method.
as an example : i can't find InternalCDOPackage, CDOResourcePackage and the other..

Can you tell me what project must be dependencies to fix this error ?

Thanks,
CanA


Re: CDO persisting to the filesystem [message #496708 is a reply to message #496663] Wed, 11 November 2009 05:44 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Rencana,

As I mentioned before, the FileStore development was started some time
ago and then abandoned in favour of other efforts. It's not supposed to
compile against HEAD and there are no additional dependencies that you
could add to fix it. The main problem is that CDO formerly used its own
meta meta model internally, instead of Ecore. That has been changed as I
described on my blog:
http://thegordian.blogspot.com/2009/03/emf-on-server.html

It's likely that you have to replace the following references to classes:

CDOPackage --> EPackage (eventually CDOPackageUnit or CDOPackageInfo)
CDOClass --> EClass (eventually CDOClassInfo)
CDOFeature --> EStructuralFeature, EAttribute, EReference

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Rencana Tarigan schrieb:
> Hi Eike,
> Thanks for reply it, and i success to pull the source...
> But i have some error because can't found class and method.
> as an example : i can't find InternalCDOPackage, CDOResourcePackage
> and the other..
>
> Can you tell me what project must be dependencies to fix this error ?
>
> Thanks,
> CanA


Previous Topic:Property ComboBox for String
Next Topic:Remove classifiers from a registered package
Goto Forum:
  


Current Time: Fri Apr 19 12:45:49 GMT 2024

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

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

Back to the top