Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsCDO 2.0 multiple repositories using one cdo server with one database
https://www.eclipse.org/forums/index.php/mv/msg/136660/431126/#msg_431126
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:
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]]>steven2009-06-29T18:23:09-00:00Re: CDO 2.0 multiple repositories using one cdo server with one database
https://www.eclipse.org/forums/index.php/mv/msg/136660/431138/#msg_431138
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).
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.