axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject svn commit: r785748 - /webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java
Date Wed, 17 Jun 2009 18:18:45 GMT
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);
             }



Mime
View raw message