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 sc...@apache.org on 2009/06/17 20:18:45 UTC

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

Author: scheu
Date: Wed Jun 17 18:18:44 2009
New Revision: 785748

URL: http://svn.apache.org/viewvc?rev=785748&view=rev
Log:
JIRA:AXIS2-4391
Contributor: Wendy Raschke
Summary:
Synchronization is added to the getServiceClient method.  This will prevent the multiple service names 
error reported in AXIS2-4391

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

Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java?rev=785748&r1=785747&r2=785748&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java (original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java Wed Jun 17 18:18:44 2009
@@ -1157,7 +1157,7 @@
         }
     }
 
-    public ServiceClient getServiceClient() {
+    public synchronized ServiceClient getServiceClient() {
         try {
             if (serviceClient == null) {
                 ConfigurationContext configCtx = getServiceDescription().getAxisConfigContext();
@@ -1165,6 +1165,9 @@
                 AxisConfiguration axisCfg = configCtx.getAxisConfiguration();
                 if (axisCfg.getService(axisSvc.getName()) != null) {
                     axisSvc.setName(axisSvc.getName() + uniqueID());
+                    if (log.isDebugEnabled()) {
+                    	log.debug("AxisService name is now " + axisSvc.getName() + ". This name should be unique; if not, errors might occur.");
+                    }
                 }
                 serviceClient = new ServiceClient(configCtx, axisSvc);
             }