Index: src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java
===================================================================
--- src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java	(revision 427483)
+++ src/main/java/org/apache/directory/server/jndi/ServerContextFactory.java	(working copy)
@@ -104,7 +104,7 @@
 
     public void beforeStartup( DirectoryService service )
     {
-        threadPool.setMaximumPoolSize( service.getConfiguration().getStartupConfiguration().getMaxThreads() );
+        threadPool.getThreadPool().setMaximumPoolSize( service.getConfiguration().getStartupConfiguration().getMaxThreads() );
         this.directoryService = service;
     }
 
