cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1227029 - /cxf/trunk/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
Date Wed, 04 Jan 2012 02:22:00 GMT
Author: dkulp
Date: Wed Jan  4 02:22:00 2012
New Revision: 1227029

URL: http://svn.apache.org/viewvc?rev=1227029&view=rev
Log:
[CXF-4007] Make sure jetty threadpool is set on the server as well.

Modified:
    cxf/trunk/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java

Modified: cxf/trunk/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java?rev=1227029&r1=1227028&r2=1227029&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
(original)
+++ cxf/trunk/rt/transports/http-jetty/src/main/java/org/apache/cxf/transport/http_jetty/JettyHTTPServerEngine.java
Wed Jan  4 02:22:00 2012
@@ -451,7 +451,11 @@ public class JettyHTTPServerEngine
         if (isSetThreadingParameters()) {
             ThreadPool pool = aconn.getThreadPool();
             if (pool == null) {
+                pool = aconn.getServer().getThreadPool();
+            }
+            if (pool == null) {
                 pool = new QueuedThreadPool();
+                aconn.getServer().setThreadPool(pool);
                 aconn.setThreadPool(pool);
             }
             if (pool instanceof QueuedThreadPool) {



Mime
View raw message