[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.emf] Re: CDO 2.0 multiple repositories using one cdo server with one database
|
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