tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r496507 - /incubator/tuscany/java/sca/services/bindings/binding.axis2/src/main/java/org/apache/tuscany/binding/axis2/Axis2BindingBuilder.java
Date Mon, 15 Jan 2007 21:48:47 GMT
Author: antelder
Date: Mon Jan 15 13:48:46 2007
New Revision: 496507

URL: http://svn.apache.org/viewvc?view=rev&rev=496507
Log:
TUSCANY-647, fixed in Axis2 now

Modified:
    incubator/tuscany/java/sca/services/bindings/binding.axis2/src/main/java/org/apache/tuscany/binding/axis2/Axis2BindingBuilder.java

Modified: incubator/tuscany/java/sca/services/bindings/binding.axis2/src/main/java/org/apache/tuscany/binding/axis2/Axis2BindingBuilder.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/services/bindings/binding.axis2/src/main/java/org/apache/tuscany/binding/axis2/Axis2BindingBuilder.java?view=diff&rev=496507&r1=496506&r2=496507
==============================================================================
--- incubator/tuscany/java/sca/services/bindings/binding.axis2/src/main/java/org/apache/tuscany/binding/axis2/Axis2BindingBuilder.java
(original)
+++ incubator/tuscany/java/sca/services/bindings/binding.axis2/src/main/java/org/apache/tuscany/binding/axis2/Axis2BindingBuilder.java
Mon Jan 15 13:48:46 2007
@@ -185,23 +185,11 @@
     }
 
     protected void initAxis() throws BuilderConfigException {
-        // TODO: Fix classloader switching. See TUSCANY-647
-        // TODO: also consider having a system component wrapping the Axis2 ConfigContext
-        ClassLoader tccl = Thread.currentThread().getContextClassLoader();
-        ClassLoader scl = getClass().getClassLoader();
+        // TODO: consider having a system component wrapping the Axis2 ConfigContext
         try {
-            if (tccl != scl) {
-                Thread.currentThread().setContextClassLoader(scl);
-            }
-            try {
-                this.configContext = new TuscanyAxisConfigurator().getConfigurationContext();
-            } catch (AxisFault e) {
-                throw new BuilderConfigException(e);
-            }
-        } finally {
-            if (tccl != scl) {
-                Thread.currentThread().setContextClassLoader(tccl);
-            }
+            this.configContext = new TuscanyAxisConfigurator().getConfigurationContext();
+        } catch (AxisFault e) {
+            throw new BuilderConfigException(e);
         }
     }
 



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


Mime
View raw message