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 da...@apache.org on 2007/02/15 18:05:10 UTC

svn commit: r508014 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AddressingBasedDispatcher.java

Author: davidillsley
Date: Thu Feb 15 09:05:10 2007
New Revision: 508014

URL: http://svn.apache.org/viewvc?view=rev&rev=508014
Log:
Prevent memory leak by causing the op context to be properly cleaned up

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AddressingBasedDispatcher.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AddressingBasedDispatcher.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AddressingBasedDispatcher.java?view=diff&rev=508014&r1=508013&r2=508014
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AddressingBasedDispatcher.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AddressingBasedDispatcher.java Thu Feb 15 09:05:10 2007
@@ -144,14 +144,12 @@
                                 .getOperationContext(msgctx.getRelatesTo().getValue());
 
                 if (operationContext != null) {
-                    operationContext.addMessageContext(msgctx);
                     msgctx.setAxisOperation(operationContext.getAxisOperation());
                     msgctx.setOperationContext(operationContext);
                     msgctx.setServiceContext((ServiceContext) operationContext.getParent());
                     msgctx.setAxisService(
                             ((ServiceContext) operationContext.getParent()).getAxisService());
-                    //InstanceDispatcher do this again , so let it go
-                    //msgctx.getAxisOperation().registerOperationContext(msgctx, operationContext);
+                    msgctx.getAxisOperation().registerMessageContext(msgctx, operationContext);
                     msgctx.setServiceGroupContextId(
                             ((ServiceGroupContext) msgctx.getServiceContext().getParent()).getId());
                 }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org