Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » CDO 2.0 multiple repositories using one cdo server with one database
CDO 2.0 multiple repositories using one cdo server with one database [message #431126] Mon, 29 June 2009 18:23 Go to next message
steven is currently offline stevenFriend
Messages: 8
Registered: July 2009
Junior Member
hi folks,

how can I create multiple repositories on one cdo server using one
(apache derby) database?
I figured out that I need a new IStore instance if I want to create/add
a new repository using the following calls:

IRepository repository = CDOServerUtil.createRepository("cmdbTest",
store, props);
CDOServerUtil.addRepository(container, repository);

if a first repository is created on the server, everything works fine.
if I create a second repository, the server complains about a crash:

[INFO] Detected crash
[INFO] Repaired after crash: maxObjectID=1, maxMetaID=428

do I need a new database, too?


cheers,

steven
Re: CDO 2.0 multiple repositories using one cdo server with one database [message #431138 is a reply to message #431126] Tue, 30 June 2009 08:02 Go to previous message
Stefan Winkler is currently offline Stefan WinklerFriend
Messages: 307
Registered: July 2009
Location: Germany
Senior Member
Hi Steven,

comments below.

steven schrieb:
> how can I create multiple repositories on one cdo server using one
> (apache derby) database?
> I figured out that I need a new IStore instance if I want to create/add
> a new repository using the following calls:
>
> IRepository repository = CDOServerUtil.createRepository("cmdbTest",
> store, props);
> CDOServerUtil.addRepository(container, repository);
Correct.
> if a first repository is created on the server, everything works fine.
> if I create a second repository, the server complains about a crash:
>
> [INFO] Detected crash
> [INFO] Repaired after crash: maxObjectID=1, maxMetaID=428
>
> do I need a new database, too?
Currently, yes, two repositories would need two different databases (or,
to be more precise, database schemas).

There is a bug for this issue: Bug 272141 -
https://bugs.eclipse.org/bugs/show_bug.cgi?id=272141

If the bug is implemented, it will be possible in the future to create
two repositories in the same database schema using repository-specific
table prefixes.

Cheers,
Stefan
Previous Topic:Generated interfaces
Next Topic:Converting EMF model instance to Ecore
Goto Forum:
  


Current Time: Thu Mar 28 20:22:52 GMT 2024

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

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

Back to the top