You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by de...@apache.org on 2006/03/20 10:48:59 UTC

svn commit: r387175 - /webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/util/InvokerThread.java

Author: deepal
Date: Mon Mar 20 01:48:57 2006
New Revision: 387175

URL: http://svn.apache.org/viewcvs?rev=387175&view=rev
Log:
-fixing ThreadingTest fails in some JVM (JDK 1.5 specially)

Modified:
    webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/util/InvokerThread.java

Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/util/InvokerThread.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/util/InvokerThread.java?rev=387175&r1=387174&r2=387175&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/util/InvokerThread.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/util/InvokerThread.java Mon Mar 20 01:48:57 2006
@@ -42,9 +42,13 @@
     protected QName operationName = new QName("echoOMElement");
     protected Log log = LogFactory.getLog(getClass());
     private Exception thrownException = null;
+    ConfigurationContext configContext;
 
-    public InvokerThread(int threadNumber) {
+    public InvokerThread(int threadNumber) throws AxisFault {
         this.threadNumber = threadNumber;
+        configContext =
+                    ConfigurationContextFactory.createConfigurationContextFromFileSystem(
+                            "target/test-resources/integrationRepo", null);
     }
 
     public void run() {
@@ -55,9 +59,6 @@
             Options options = new Options();
             options.setTo(targetEPR);
             options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
-            ConfigurationContext configContext =
-                    ConfigurationContextFactory.createConfigurationContextFromFileSystem(
-                            "target/test-resources/integrationRepo", null);
             ServiceClient sender = new ServiceClient(configContext, null);
             sender.setOptions(options);
             OMElement result = sender.sendReceive(payload);