cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r738242 - /cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java
Date Tue, 27 Jan 2009 20:51:41 GMT
Author: dkulp
Date: Tue Jan 27 20:51:40 2009
New Revision: 738242

URL: http://svn.apache.org/viewvc?rev=738242&view=rev
Log:
Make sure the default executor is the proper workqueue

Modified:
    cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java

Modified: cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java?rev=738242&r1=738241&r2=738242&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java (original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java Tue Jan
27 20:51:40 2009
@@ -81,6 +81,7 @@
 import org.apache.cxf.phase.PhaseManager;
 import org.apache.cxf.service.model.EndpointInfo;
 import org.apache.cxf.transport.MessageObserver;
+import org.apache.cxf.workqueue.WorkQueueManager;
 
 public class DispatchImpl<T> extends BindingProviderImpl implements Dispatch<T>,
MessageObserver {
     private static final Logger LOG = LogUtils.getL7dLogger(DispatchImpl.class);
@@ -343,10 +344,7 @@
 
     private Executor getExecutor() {
         if (executor == null) {
-            executor = getEndpoint().getService().getExecutor();
-        }
-        if (executor == null) {
-            executor = Executors.newFixedThreadPool(5);
+            executor = bus.getExtension(WorkQueueManager.class).getAutomaticWorkQueue();
         }
         if (executor == null) {
             System.err.println("Can't not get executor");



Mime
View raw message