InetAddress host = cfg.getHost();
Service service = new Service("ldap", TransportType.SOCKET, new InetSocketAddress(host, port));
// Service service = new Service( "ldap", TransportType.SOCKET, new InetSocketAddress( port ) );
try {
minaRegistry.bind(service, new LdapProtocolProvider((Hashtable) env.clone()));
ldapService = service;
log.debug("Successful bind of LDAP Service completed: " + ldapService);
}
catch (IOException e) {
String msg = "Failed to bind the LDAP protocol service to the service registry: " + service;