directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r709818 - /directory/apacheds/branches/apacheds-mina2/server-integ/src/main/java/org/apache/directory/server/integ/LdapServerFactory.java
Date Sun, 02 Nov 2008 00:41:43 GMT
Author: elecharny
Date: Sat Nov  1 17:41:43 2008
New Revision: 709818

URL: http://svn.apache.org/viewvc?rev=709818&view=rev
Log:
Initialize the factory accordingly to MINA 2

Modified:
    directory/apacheds/branches/apacheds-mina2/server-integ/src/main/java/org/apache/directory/server/integ/LdapServerFactory.java

Modified: directory/apacheds/branches/apacheds-mina2/server-integ/src/main/java/org/apache/directory/server/integ/LdapServerFactory.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-mina2/server-integ/src/main/java/org/apache/directory/server/integ/LdapServerFactory.java?rev=709818&r1=709817&r2=709818&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-mina2/server-integ/src/main/java/org/apache/directory/server/integ/LdapServerFactory.java
(original)
+++ directory/apacheds/branches/apacheds-mina2/server-integ/src/main/java/org/apache/directory/server/integ/LdapServerFactory.java
Sat Nov  1 17:41:43 2008
@@ -21,7 +21,6 @@
 
 import java.util.HashMap;
 import java.util.Map;
-import java.util.concurrent.Executors;
 
 import org.apache.directory.server.core.DefaultDirectoryService;
 import org.apache.directory.server.core.DirectoryService;
@@ -36,7 +35,6 @@
 import org.apache.directory.server.ldap.handlers.extended.StartTlsHandler;
 import org.apache.directory.server.ldap.handlers.extended.StoredProcedureExtendedOperationHandler;
 import org.apache.directory.shared.ldap.constants.SupportedSaslMechanisms;
-import org.apache.mina.transport.socket.nio.NioProcessor;
 import org.apache.mina.transport.socket.nio.NioSocketAcceptor;
 import org.apache.mina.util.AvailablePortFinder;
 
@@ -71,7 +69,7 @@
 
             LdapService ldapService = new LdapService();
             ldapService.setDirectoryService( service );
-            ldapService.setSocketAcceptor( new NioSocketAcceptor( new NioProcessor( Executors.newCachedThreadPool()
) ) );
+            ldapService.setSocketAcceptor( new NioSocketAcceptor() );
             ldapService.setIpPort( AvailablePortFinder.getNextAvailable( 1024 ) );
             ldapService.addExtendedOperationHandler( new StartTlsHandler() );
             ldapService.addExtendedOperationHandler( new StoredProcedureExtendedOperationHandler()
);



Mime
View raw message