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 sc...@apache.org on 2008/04/30 02:39:14 UTC
svn commit: r652203 -
/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/impl/AxisInvocationController.java
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