You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Jan-Olof Herbertsson <ja...@acando.com> on 2007/10/09 21:51:07 UTC

How to deploy a custom partition

Hi

 

I try to deploy the CustomPartition (fetched from http://svn.apache.org/viewvc/directory/sandbox/akarasulu/custom-partition/) 

into ApacheDS 1.0. But with no success.

 

I have no idea how server.xml should be configured? Are there some examples available?

How to define the connection between the CustomPartition class and myPartitionConfiguration in server.xml

 

I tried with following in server.xml
1)  Defined the bean 
<bean id="mypartition" class="foo.bar.CustomPartition"/>

and the constructor was executed.
But I suppose it should be more here …. ?

 

2) Added myPartitionConfiguration to contextPartitionConfigurations

<property name="contextPartitionConfigurations">

      <set>

        <ref bean="examplePartitionConfiguration"/>

        <ref bean="sevenSeasPartitionConfiguration"/>

        <ref bean="myPartitionConfiguration"/>

      </set>

    </property>

 

3) Copied the examplePartitionConfiguration to myPartitionConfiguration
bean id="myPartitionConfiguration" class="org.apache.directory.server.core.partition.impl.btree.MutableBTreePartitionConfiguration">

    <property name="name"><value>My partition</value></property>

    <property name="cacheSize"><value>100</value></property>

    <property name="suffix"><value>ou=mypartition</value></property>

    <property name="optimizerEnabled"><value>true</value></property>

 

    <property name="synchOnWrite"><value>true</value></property>

    <property name="contextEntry">

      <value>

        objectClass: top

        objectClass: organization

        objectClass: extensibleObject

        ou: mypartition

      </value>

    </property>

  </bean>

 

But without no success. Any hints what’s wrong? 

 

BR

/ JOH