Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Implementing the class

Using the partition

Adding it to a server.xml file

In order to use the partition in a standard installation of ApacheDS, we simply add it to the server.xml configuration. We have not used annotations (xbean) to ease XML editing, so we have to provide a "native" Spring bean.

Code Block
xml
xml
titleserver.xml

<spring:beans xmlns:spring="http://xbean.apache.org/schemas/spring/1.0" 
			  xmlns:s="http://www.springframework.org/schema/beans"
			  xmlns="http://apacheds.org/config/1.0">

  ...
   <defaultDirectoryService ...>
     ...
     <partitions>
     ...
      <s:bean 
          id="helloPartition" 
          class="org.apache.directory.samples.partition.hello.HelloWorldPartition">
        <s:property name="suffix" value="ou=helloWorld" />
      </s:bean>
    </partitions>
   ...
  </defaultDirectoryService>
...

A partition which provides some more data