|
Re: [CDO] CDO+db4o run from RCP application [message #997965 is a reply to message #997718] |
Wed, 09 January 2013 04:48 |
|
Am 08.01.2013 17:36, schrieb Alexander Solodukhin:
> Hi guys.
>
> I'm new to EMF and CDO but have some experience developing RCP applications. So I want to practice my skills and
> decided to develop money/expenses accounting app using eclipse technologies. The killer feature of the app I see
> concurrent model editing over the network. So that is why I want persist EMF using CDO.
>
> The idea is to start cdo server inside one copy of rcp application and have opportunity to connect from another copy
> through the network.
A dedicated server node is certainly more common, but it's of course up to you.
> I think that storage for my cdo server must be some kind of embedded system, my choice is db4o.
I'm afraid the original developer of the DB4OStore does no longer maintain it. Not a good choice for production unless
you want to take over its maintenance.
> So I've followed tutorials found on the Internet and successfully ran cdo service with db4o storage using feature
> project approach. But the problem is that in production I want to run my cdo server from the RCP app.
>
> I red http://wiki.eclipse.org/Run_a_CDO_container_inside_eclipse_runtime this approach and realized that I need way to
> create db4o aware IStore instance. I saw that stores could be created using factory methods like this:
> StoreUtil.createMEMStore() or IDBStore store = CDODBUtil.createStore(...)
>
> So I need such method to create db4o store. I searched the Internet but didn't find any useful information. So could
> you kindly point me to some source of that magic knowledge I need :).
To me it seems that factory method is missing for DB4O support. You may propose one in a bugzilla patch. As a workaround
you can call the constructor on the internal store class directly.
I suspect that the DB4OStore has only been used with the cdo-server.xml file because there is factory support for it.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07852 seconds