Name Date Size

.. 2011-07-13 09:20:55 24

99-example-plugin.ldif 2008-02-08 18:37:42 1.4 KiB

build.xml 2010-08-18 11:47:15 16.3 KiB

example-plugin.ldif 2007-09-26 02:21:02 286

example_plugin.properties 2008-05-26 02:29:48 1.6 KiB

example_plugin_fr.properties 2008-05-26 02:29:48 1.6 KiB

ExamplePlugin.java 2008-05-26 02:29:48 5.9 KiB

ExamplePluginConfiguration.xml 2007-09-26 19:00:30 1.2 KiB

package-info.java 2008-02-08 18:37:42 1.1 KiB

Package.xml 2007-03-23 15:26:04 250

README 2011-07-13 09:20:55 1.5 KiB

README

This folder contains source code for an example "Hello World" style
plugin. It features a plugin which has a configurable message (the
default being "Hello World") which is displayed as a notice message
when OpenDJ directory server is started.

In order to build and use this example plugin, perform the following
steps while the server is stopped:

  1. Then unzip the example-plugin.zip (in place):

     unzip example-plugin.zip

  2. Go into the example-plugin source folder:

     cd example-plugin

  3. And build the plugin (this requires Ant version 7 and Xalan-Java):

     ant install

     If this step fails for you as is, you can find Ant 7 and Xalan-Java
     in the OpenDJ ext/ directory after checking the source out with
     Subversion. Substitute your full path to OpenDJ sources for /src
     in the following command:

     /src/ext/ant/bin/ant -Dxalan.directory=/src/ext/xalan-j/ install

  4. This will copy the following files into the parent OpenDJ
     installation:

     lib/extensions/example-plugin.jar
     config/example-plugin.ldif
     config/schema/99-example-plugin.ldif

  5. Add the plugin's config to the server configuration.

     cd ../bin
     ./start-ds
     ./dsconfig -h `hostname` -p 4444 -D "cn=Directory Manager" -w password
      create-plugin --plugin-name "Example Plugin" --type example
      --set enabled:true --set plugin-type:startup
      --set java-class:com.example.opends.ExamplePlugin -X -n

  6. Restart the server and look for the "hello world" notice in the start
     up log:

     ./stop-ds --restart