stevel 2002/10/17 16:13:47
Modified: java/src/org/apache/axis/transport/http AxisServletBase.java
Log:
bug ID: 13682; not cleaning up in a way that tomcat 3.x is happy with. Strange, 3.x
is oft times more forgiving than 4.x, but there you go.
Revision Changes Path
1.18 +7 -2
xml-axis/java/src/org/apache/axis/transport/http/AxisServletBase.java
Index: AxisServletBase.java
===================================================================
RCS file:
/home/cvs/xml-axis/java/src/org/apache/axis/transport/http/AxisServletBase.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- AxisServletBase.java 7 Sep 2002 00:06:29 -0000 1.17
+++ AxisServletBase.java 17 Oct 2002 23:13:47 -0000 1.18
@@ -231,10 +231,15 @@
/**
* put the engine back in to the context.
- * @param context
- * @param engine
+ * @param context servlet context to use
+ * @param engine reference to the engine. If null, the engine is removed
*/
private static void storeEngine(ServletContext context, AxisServer engine) {
+ if (engine == null) {
+ context.removeAttribute(ATTR_AXIS_ENGINE);
+ } else {
+ context.setAttribute(ATTR_AXIS_ENGINE, engine);
+ }
context.setAttribute(ATTR_AXIS_ENGINE, engine);
}