Stefan Zoerner wrote:
Hi all!

There is some criticism about configuration complexity of ApacheDS, especially from people who argue after a first glance at it. The verbosity is mostly driven by the Spring Framework.

Here are three ideas I had:

---
1) Simplify default server.xml by using another property setting style

Currently, the server.xml seems to favor this style (example):
...
<bean id="systemPartitionConfiguration" class="...">
    <property name="name"><value>system</value></property>
    <property name="cacheSize"><value>100</value></property>
    <property name="suffix"><value>ou=system</value></property>
...

Is there any reason why not to use this style:
...
<bean id="systemPartitionConfiguration" class="...">
    <property name="name" value="system" />
    <property name="cacheSize" value="100" />
    <property name="suffix" value="ou=system" />
...

Don't know if it will work with spring. Try it in a working ADS installtion and run your experiment to see.

If it works I like this reduction in noise.

(quite easy to achieve. I volunteer, if nobody contradicts that this is a (rather small) imrovement)
---

2) Reduce length of partition configuration

Currently, partition configuration are very long, mostly because of the many many indices for internal attributes:

Yeah you don't need to do an index for it.  It can be defaulted.

...
<bean class="org.apache.directory.server.core.partition.impl.btree.MutableIndexConfiguration"> <property name="attributeId"><value>1.3.6.1.4.1.18060.0.4.1.2.1</value></property>
          <property name="cacheSize"><value>100</value></property>
        </bean>
(many others follow, in each partition the same
...

If it is highly recommend to use these indices, how about having a special IndexConfiguration as a default, which only has to be extended in order to adjust it to your needs?

Good idea I think we may already have this but I must confirm it.

---

3. Define our own tags for configuration with the help XML Schema-based configuration introduced in Spring 2.0. This is more a long term option. But I think the idea is promising.

What do you think?


Hmmm I don't even know what this is. I don't have any ideas on Spring 2.0. But from what I can gather from your question above it does sound like a nice solution to use a custom ads schema.

Regards,
Alex
begin:vcard
fn:Alex Karasulu
n:Karasulu;Alex
org:Apache Software Foundation;Apache Directory
adr:;;1005 N. Marsh Wind Way;Ponte Vedra ;FL;32082;USA
email;internet:[EMAIL PROTECTED]
title:Member, V.P.
tel;work:(904) 791-2766
tel;fax:(904) 808-4789
tel;home:(904) 808-4789
tel;cell:(904) 315-4901
note;quoted-printable:AIM: alexokarasulu=0D=0A=
	MSN: [EMAIL PROTECTED]
	Yahoo!: alexkarasulu=0D=0A=
	IRC: aok=0D=0A=
	PGP ID: 1024D/4E1370F8 BBCC E8D8 8756 2D51 C3D4 014A 3662 F96F 4E13 70F8=0D=0A=
	
x-mozilla-html:FALSE
url:http://people.apache.org/~akarasulu
version:2.1
end:vcard

Reply via email to