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 ng...@apache.org on 2007/06/21 22:01:12 UTC
svn commit: r549592 -
/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/AxisInvocationController.java
Author: ngallardo
Date: Thu Jun 21 13:01:11 2007
New Revision: 549592
URL: http://svn.apache.org/viewvc?view=rev&rev=549592
Log:
Set the timeout properly for JAX-WS clients.
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?view=diff&rev=549592&r1=549591&r2=549592
==============================================================================
--- 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 Thu Jun 21 13:01:11 2007
@@ -392,6 +392,13 @@
// Get the SOAP Action (if needed)
String soapAction = ClientUtils.findSOAPAction(requestMsgCtx);
options.setAction(soapAction);
+ // get the timeout from the request message context options as it may have been
+ // set by the user; if it was not set by the user we will just be setting the
+ // timeout on the operation client to the default so it will not have a negative
+ // effect; this logic is reliant on the fact the JAX-WS MessageContext is delegating
+ // to the Axis2 Options object and not storing its own property bag
+ long timeout = axisRequest.getOptions().getTimeOutInMilliSeconds();
+ options.setTimeOutInMilliSeconds(timeout);
// Use the OperationClient to send the request and put the contents
// of the response in the response MessageContext.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org