axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject svn commit: r482343 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/ServiceDelegate.java
Date Mon, 04 Dec 2006 20:31:50 GMT
Author: scheu
Date: Mon Dec  4 12:31:49 2006
New Revision: 482343

URL: http://svn.apache.org/viewvc?view=rev&rev=482343
Log:
AXIS2-1821
Contributor:Rich Scheuerle
Quick Fix to cache executor

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/ServiceDelegate.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/ServiceDelegate.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/ServiceDelegate.java?view=diff&rev=482343&r1=482342&r2=482343
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/ServiceDelegate.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/ServiceDelegate.java
Mon Dec  4 12:31:49 2006
@@ -224,8 +224,10 @@
      * @see javax.xml.ws.spi.ServiceDelegate#getExecutor()
      */
     public Executor getExecutor() {
-    	//FIXME: Use client provider executor too.	
-        executor = getDefaultExecutor();
+    	//FIXME: Use client provider executor too.
+        if (executor == null) {
+            executor = getDefaultExecutor();
+        }
         return executor;
      }
     
@@ -306,7 +308,7 @@
     
     //TODO: Need to make the default number of threads configurable
     private Executor getDefaultExecutor(){
-        return Executors.newFixedThreadPool(3);
+        return Executors.newFixedThreadPool(20);
     }
 
     private <T> JAXWSClientContext<T> createClientContext(EndpointDescription
epDesc, Class<T> clazz, Mode mode){



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message