axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r662761 - /webservices/axis2/trunk/java/modules/osgi/src/org/apache/axis2/extensions/osgi/ServiceRegistry.java
Date Tue, 03 Jun 2008 12:20:36 GMT
Author: dims
Date: Tue Jun  3 05:20:36 2008
New Revision: 662761

URL: http://svn.apache.org/viewvc?rev=662761&view=rev
Log:
use concurrent hash map to prevent a race condition when shutting down equinox

Modified:
    webservices/axis2/trunk/java/modules/osgi/src/org/apache/axis2/extensions/osgi/ServiceRegistry.java

Modified: webservices/axis2/trunk/java/modules/osgi/src/org/apache/axis2/extensions/osgi/ServiceRegistry.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/osgi/src/org/apache/axis2/extensions/osgi/ServiceRegistry.java?rev=662761&r1=662760&r2=662761&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/osgi/src/org/apache/axis2/extensions/osgi/ServiceRegistry.java
(original)
+++ webservices/axis2/trunk/java/modules/osgi/src/org/apache/axis2/extensions/osgi/ServiceRegistry.java
Tue Jun  3 05:20:36 2008
@@ -40,11 +40,12 @@
 import java.util.Enumeration;
 import java.util.HashMap;
 import java.util.Iterator;
+import java.util.concurrent.ConcurrentHashMap;
 
 public class ServiceRegistry extends JAXWSDeployer {
     private OSGiAxis2Servlet servlet;
     private Logger logger;
-    private HashMap services = new HashMap();
+    private ConcurrentHashMap services = new ConcurrentHashMap();
     private boolean isInited = false;
 
     public ServiceRegistry(OSGiAxis2Servlet servlet, Logger logger) {



Mime
View raw message