axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r428662 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/AxisInvocationController.java
Date Fri, 04 Aug 2006 08:43:22 GMT
Author: nagy
Date: Fri Aug  4 01:43:22 2006
New Revision: 428662

URL: http://svn.apache.org/viewvc?rev=428662&view=rev
Log:
Added calls for the ThreadContextMigrators to the rest of the invocation methods.

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/AxisInvocationController.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/AxisInvocationController.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/AxisInvocationController.java?rev=428662&r1=428661&r2=428662&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/AxisInvocationController.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/AxisInvocationController.java
Fri Aug  4 01:43:22 2006
@@ -231,7 +231,11 @@
                 // AxisService/AxisOperation that they are tied to.
                 axisRequestMsgCtx.setServiceContext(svcClient.getServiceContext());
                 opClient.addMessageContext(axisRequestMsgCtx);
+
+                //This assumes that we are on the ultimate execution thread
+                ThreadContextMigratorUtil.performMigrationToContext(Constants.THREAD_CONTEXT_MIGRATOR_LIST_ID,
axisRequestMsgCtx);
                 opClient.execute(true);
+                ThreadContextMigratorUtil.performContextCleanup(Constants.THREAD_CONTEXT_MIGRATOR_LIST_ID,
axisRequestMsgCtx);
             } catch (AxisFault e) {
                 throw ExceptionFactory.makeWebServiceException(e);
             } catch (MessageException e) {
@@ -333,7 +337,9 @@
                 axisRequestMsgCtx.setServiceContext(svcClient.getServiceContext());
                 opClient.addMessageContext(axisRequestMsgCtx);
                 opClient.setCallback(axisCallback);
+                ThreadContextMigratorUtil.performMigrationToContext(Constants.THREAD_CONTEXT_MIGRATOR_LIST_ID,
axisRequestMsgCtx);
                 opClient.execute(false);
+                ThreadContextMigratorUtil.performContextCleanup(Constants.THREAD_CONTEXT_MIGRATOR_LIST_ID,
axisRequestMsgCtx);
             } catch (AxisFault e) {
                 throw ExceptionFactory.makeWebServiceException(e);
             } catch (MessageException e) {



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


Mime
View raw message