axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r367711 - /webservices/axis/trunk/java/src/org/apache/axis/transport/http/AxisHTTPSessionListener.java
Date Tue, 10 Jan 2006 18:17:19 GMT
Author: dims
Date: Tue Jan 10 10:17:15 2006
New Revision: 367711

URL: http://svn.apache.org/viewcvs?rev=367711&view=rev
Log:
fix for AXIS-1995 - ServiceLifecycle.destroy() never called

Modified:
    webservices/axis/trunk/java/src/org/apache/axis/transport/http/AxisHTTPSessionListener.java

Modified: webservices/axis/trunk/java/src/org/apache/axis/transport/http/AxisHTTPSessionListener.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/src/org/apache/axis/transport/http/AxisHTTPSessionListener.java?rev=367711&r1=367710&r2=367711&view=diff
==============================================================================
--- webservices/axis/trunk/java/src/org/apache/axis/transport/http/AxisHTTPSessionListener.java
(original)
+++ webservices/axis/trunk/java/src/org/apache/axis/transport/http/AxisHTTPSessionListener.java
Tue Jan 10 10:17:15 2006
@@ -49,9 +49,10 @@
         
         Enumeration e = session.getAttributeNames();
         while (e.hasMoreElements()) {
-            Object next = e.nextElement();
-            if (next instanceof ServiceLifecycle) {
-                ((ServiceLifecycle)next).destroy();
+            String attributeName = (String) e.nextElement();
+            Object attributeValue = session.getAttribute(attributeName);
+            if (attributeValue instanceof ServiceLifecycle) {
+                ((ServiceLifecycle) attributeValue).destroy();
             }
         }
     }        



Mime
View raw message