1008N/AThis folder contains source code for an example "Hello World" style
1008N/Aplugin. It features a plugin which has a configurable message (the
1008N/Adefault being "Hello World") which is displayed as a notice message
5444N/Awhen OpenDJ directory server is started.
1008N/A
1008N/AIn order to build and use this example plugin, perform the following
5444N/Asteps while the server is stopped:
1008N/A
5444N/A 1. Then unzip the example-plugin.zip (in place):
1008N/A
1008N/A unzip example-plugin.zip
1008N/A
5444N/A 2. Go into the example-plugin source folder:
1008N/A
1008N/A cd example-plugin
1008N/A
5444N/A 3. And build the plugin (this requires Ant version 7 and Xalan-Java):
1008N/A
1008N/A ant install
1008N/A
5444N/A If this step fails for you as is, you can find Ant 7 and Xalan-Java
5444N/A in the OpenDJ ext/ directory after checking the source out with
5444N/A Subversion. Substitute your full path to OpenDJ sources for /src
5444N/A in the following command:
5444N/A
5444N/A /src/ext/ant/bin/ant -Dxalan.directory=/src/ext/xalan-j/ install
5444N/A
5444N/A 4. This will copy the following files into the parent OpenDJ
1008N/A installation:
1008N/A
1008N/A lib/extensions/example-plugin.jar
1008N/A config/example-plugin.ldif
1008N/A config/schema/99-example-plugin.ldif
1008N/A
5444N/A 5. Add the plugin's config to the server configuration.
1008N/A
5444N/A cd ../bin
5444N/A ./start-ds
5444N/A ./dsconfig -h `hostname` -p 4444 -D "cn=Directory Manager" -w password
5444N/A create-plugin --plugin-name "Example Plugin" --type example
5444N/A --set enabled:true --set plugin-type:startup
5444N/A --set java-class:com.example.opends.ExamplePlugin -X -n
1008N/A
5444N/A 6. Restart the server and look for the "hello world" notice in the start
1008N/A up log:
3297N/A
5444N/A ./stop-ds --restart