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 di...@apache.org on 2006/01/10 19:17:19 UTC

svn commit: r367711 - /webservices/axis/trunk/java/src/org/apache/axis/transport/http/AxisHTTPSessionListener.java

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();
             }
         }
     }