The OpenDJ SDK Examples contains various example applications illustrating usage of the OpenDJ LDAP SDK.