Author: alessio.soldano(a)jboss.com
Date: 2011-07-21 05:19:42 -0400 (Thu, 21 Jul 2011)
New Revision: 14724
Modified:
stack/cxf/trunk/modules/addons/transports/http/httpserver/src/main/java/org/jboss/wsf/stack/cxf/addons/transports/httpserver/HttpServerEngine.java
Log:
[JBWS-3325] Use a thread pool for serving requests to the http server
Modified:
stack/cxf/trunk/modules/addons/transports/http/httpserver/src/main/java/org/jboss/wsf/stack/cxf/addons/transports/httpserver/HttpServerEngine.java
===================================================================
---
stack/cxf/trunk/modules/addons/transports/http/httpserver/src/main/java/org/jboss/wsf/stack/cxf/addons/transports/httpserver/HttpServerEngine.java 2011-07-20
18:53:06 UTC (rev 14723)
+++
stack/cxf/trunk/modules/addons/transports/http/httpserver/src/main/java/org/jboss/wsf/stack/cxf/addons/transports/httpserver/HttpServerEngine.java 2011-07-21
09:19:42 UTC (rev 14724)
@@ -23,6 +23,7 @@
import java.io.IOException;
import java.net.InetSocketAddress;
+import java.util.concurrent.Executors;
import java.util.logging.Level;
import java.util.logging.Logger;
@@ -90,6 +91,7 @@
try
{
server = HttpServer.create(isa, BACKLOG);
+ server.setExecutor(Executors.newCachedThreadPool());
server.start();
}
catch (IOException e)
Show replies by date