axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject svn commit: r652203 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/impl/AxisInvocationController.java
Date Wed, 30 Apr 2008 00:39:14 GMT
Author: scheu
Date: Tue Apr 29 17:39:14 2008
New Revision: 652203

URL: http://svn.apache.org/viewvc?rev=652203&view=rev
Log:
AXIS2-3773
Contributor: Brian De Pradine
Tester: Martin Adams
Change the AxisController doInvoke to honor Async MEP.

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

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/impl/AxisInvocationController.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/impl/AxisInvocationController.java?rev=652203&r1=652202&r2=652203&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/impl/AxisInvocationController.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/impl/AxisInvocationController.java
Tue Apr 29 17:39:14 2008
@@ -97,6 +97,20 @@
         OperationClient opClient = createOperationClient(svcClient, operationName);
 
         initOperationClient(opClient, request);
+        
+        // Setup the client so that it knows whether the underlying call to
+        // Axis2 knows whether or not to start a listening port for an
+        // asynchronous response.
+        Boolean useAsyncMep = (Boolean)request.getProperty(Constants.USE_ASYNC_MEP);
+        if ((useAsyncMep != null && useAsyncMep.booleanValue())
+                || opClient.getOptions().isUseSeparateListener()) {
+            configureAsyncListener(opClient, request.getAxisMessageContext());
+        } else {
+            if (log.isDebugEnabled()) {
+                log.debug(
+                        "Asynchronous message exchange not enabled.  The invocation will
be synchronous.");
+            }
+        }
 
         org.apache.axis2.context.MessageContext axisRequestMsgCtx = request.getAxisMessageContext();
         org.apache.axis2.context.MessageContext axisResponseMsgCtx = null;



---------------------------------------------------------------------
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