You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mi...@apache.org on 2009/04/17 23:53:19 UTC

svn commit: r766164 - /ode/trunk/axis2/src/main/java/org/apache/ode/axis2/BindingContextImpl.java

Author: midon
Date: Fri Apr 17 21:53:19 2009
New Revision: 766164

URL: http://svn.apache.org/viewvc?rev=766164&view=rev
Log:
ODE-580: workaround AXIS2-4314, only valid for axis2 >1.4.1

Modified:
    ode/trunk/axis2/src/main/java/org/apache/ode/axis2/BindingContextImpl.java

Modified: ode/trunk/axis2/src/main/java/org/apache/ode/axis2/BindingContextImpl.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/BindingContextImpl.java?rev=766164&r1=766163&r2=766164&view=diff
==============================================================================
--- ode/trunk/axis2/src/main/java/org/apache/ode/axis2/BindingContextImpl.java (original)
+++ ode/trunk/axis2/src/main/java/org/apache/ode/axis2/BindingContextImpl.java Fri Apr 17 21:53:19 2009
@@ -132,8 +132,10 @@
                 }
                 // now, stop the service
                 _server._axisConfig.stopService(axisServiceName);
-                // if only this method did a good job of cleaning up after itself
-                _server._axisConfig.removeService(axisServiceName);
+                // calling removeServiceGroup() is workaround to AXIS2-4314.
+                //  It happens that Axis2 creates one group per service you add with AxisConfiguration.addService(). See this.createService()
+                // Once this issue is fixed (hopully in Axis2-1.5), we can use removeService() again.
+                _server._axisConfig.removeServiceGroup(axisServiceName);
                 _server._axisConfig.cleanup();
             } catch (AxisFault axisFault) {
                 __log.error("Couldn't destroy service " + serviceName);