CDO 2.0 multiple repositories using one cdo server with one database [message #431126] |
Mon, 29 June 2009 18:23 |
steven 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 |
Stefan Winkler 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
|
|
|
Powered by
FUDForum. Page generated in 0.03557 seconds