Oracle JNDI LDAP Connection Test

If you want to test your ldap connection you may use this code. Please keep in mind when you create the project add Spring necessary jars as well as spring ldap and sun-jndi-ldapbp.jar package springframeworkldapclient; import java.util.Hashtable; import javax.naming.Context; import javax.naming.NamingException; import javax.naming.ldap.InitialLdapContext; import javax.naming.ldap.LdapContext; public class LdapContextCreation { public static void main(String[] args) { LdapContextCreation

Primitive types and Literals

There are 8 primitive types boolean char int long byte short double float Boolean: one bit minimum capacity and has the value of true and false. Char: 16 bit unsigned quantity hold character values. Range of value is 0 to 65,535. Int: 32 bit signed quantity holds numbers. Range of value is -2,147,483,648 to 2,147,483,647.

Maven goals

validate – validate the project is correct and all necessary information is available compile – compile the source code of the project test – test the compiled source code using a suitable unit testing framework. These tests should not require the code be packaged or deployed package – take the compiled code and package it in its distributable format,