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 ga...@apache.org on 2007/07/09 19:06:54 UTC

svn commit: r554712 - /webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ServiceDescriptionImpl.java

Author: gawor
Date: Mon Jul  9 10:06:52 2007
New Revision: 554712

URL: http://svn.apache.org/viewvc?view=rev&rev=554712
Log:
when service description is updated, let's reset service runtime description data, otherwise old information might be used

Modified:
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ServiceDescriptionImpl.java

Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ServiceDescriptionImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ServiceDescriptionImpl.java?view=diff&rev=554712&r1=554711&r2=554712
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ServiceDescriptionImpl.java (original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/ServiceDescriptionImpl.java Mon Jul  9 10:06:52 2007
@@ -291,6 +291,13 @@
                     // TODO: Need to create the Axis Description objects after we have all the config info (i.e. from this SEI)
                     endpointDescription = new EndpointDescriptionImpl(sei, portQName, this);
                     addEndpointDescription(endpointDescription);
+                    /*
+                     * We must reset the service runtime description after adding a new endpoint
+                     * since the runtime description information could have references to old
+                     * information. See MarshalServiceRuntimeDescriptionFactory and 
+                     * MarshalServiceRuntimeDescription.
+                     */
+                    resetServiceRuntimeDescription();
                 } else
                 if (getEndpointSEI(portQName) == null && !endpointDescription.isDynamicPort()) {
                     // Existing endpointDesc from a declared port needs to be updated with an SEI
@@ -1533,6 +1540,10 @@
     public void setServiceRuntimeDesc(ServiceRuntimeDescription srd) {
         // TODO Add toString support
         runtimeDescMap.put(srd.getKey(), srd);
+    }
+    
+    private void resetServiceRuntimeDescription() {
+        runtimeDescMap.clear();
     }
 
     /** Return a string representing this Description object and all the objects it contains. */



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