You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by am...@apache.org on 2008/07/16 13:36:17 UTC

svn commit: r677249 - /webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java

Author: amilas
Date: Wed Jul 16 04:36:16 2008
New Revision: 677249

URL: http://svn.apache.org/viewvc?rev=677249&view=rev
Log:
AXIS2-3870 committed to branch

Modified:
    webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java

Modified: webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java?rev=677249&r1=677248&r2=677249&view=diff
==============================================================================
--- webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java (original)
+++ webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java Wed Jul 16 04:36:16 2008
@@ -387,6 +387,21 @@
             if (!axisService.isClientSide()) {
                 notifyObservers(AxisEvent.SERVICE_REMOVE, axisService);
             }
+
+            //removes the endpoints to this service
+            String key = null;
+            List endPointsForThisService = new ArrayList();
+            for (Iterator iter = this.allEndpoints.keySet().iterator(); iter.hasNext();){
+                key = (String)iter.next();
+                if (key.startsWith(axisService.getName())){
+                    endPointsForThisService.add(key);
+                }
+            }
+
+            for (Iterator iter = endPointsForThisService.iterator();iter.hasNext();){
+                this.allEndpoints.remove(iter.next());
+            }
+
         }
         removeChild(serviceGroupName);
         notifyObservers(AxisEvent.SERVICE_REMOVE, axisServiceGroup);