You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Ole Ersoy <ol...@gmail.com> on 2007/04/12 00:07:39 UTC

[DAS] Programmatic Creation of Partitions Feature

Just throwing this out here as an idea.

I think it would be great if the DAS could
create a partition programmatically.

That saves users from having to configure both
the DAS and the directory server.

Using a little convention it saves them from
configuring the new partition all together.

I was thinking about how this could be accomplished.

One way would be to trigger the partition creation
programmatically, then serialize the corresponding
configuration file, possibly overwriting the existing one.

However if this goes wrong, then configuration file has to
be restored from somewhere else.

The other idea, is that when a partition gets created
programmatically the server simply saves a file with
the partition information in it named after the partition...
for instance

com.xml

Then it reads com.xml again, and verifies that it's correct
before allowing any information to be written to the partition.

Then next time the server starts it just reads server.xml
and all *.xml files in the conf directory.

A utility could be provided to merge the main configuration file,
and the individual partition files when necessary.

Thoughts?

Cheers,
Ole