Name | Date | Size | |
---|---|---|---|
.. | 2014-11-07 19:30:43 | 24 | |
99-example-plugin.ldif | 2014-11-07 19:30:43 | 1.5 KiB | |
build.xml | 2014-11-07 19:30:43 | 16.4 KiB | |
example-plugin.ldif | 2014-11-07 19:30:43 | 286 | |
example_plugin.properties | 2014-11-07 19:30:43 | 1.6 KiB | |
example_plugin_fr.properties | 2014-11-07 19:30:43 | 1.7 KiB | |
ExamplePlugin.java | 2014-11-07 19:30:43 | 5.9 KiB | |
ExamplePluginConfiguration.xml | 2014-11-07 19:30:43 | 1.2 KiB | |
package-info.java | 2014-11-07 19:30:43 | 1.1 KiB | |
Package.xml | 2014-11-07 19:30:43 | 250 | |
README | 2014-11-07 19:30:43 | 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:
4. This will copy the following files into the parent OpenDJ
installation:
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