diff options
author | beckerdo <beckerdo@13f79535-47bb-0310-9956-ffa450edef68> | 2009-01-08 15:35:16 +0000 |
---|---|---|
committer | beckerdo <beckerdo@13f79535-47bb-0310-9956-ffa450edef68> | 2009-01-08 15:35:16 +0000 |
commit | e2ed19aac41e7b5ce9769f42512c5be4bb3ef559 (patch) | |
tree | 79496770e8bf92dd877de53e02c22cd5c176abe4 /branches/sca-java-1.x/modules/binding-ws-axis2/src/main/java | |
parent | c6e500c9f247c6d5bf4a5de67bcd8a6f9cc02cd0 (diff) |
Update for TUSCANY-1893 (Axis2 Binding Provider timeout)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@732722 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | branches/sca-java-1.x/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2BindingInvoker.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/branches/sca-java-1.x/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2BindingInvoker.java b/branches/sca-java-1.x/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2BindingInvoker.java index d468370a7e..3ed48425ab 100644 --- a/branches/sca-java-1.x/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2BindingInvoker.java +++ b/branches/sca-java-1.x/modules/binding-ws-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2BindingInvoker.java @@ -71,6 +71,8 @@ public class Axis2BindingInvoker implements Invoker, DataExchangeSemantics { new QName(Constants.SCA10_TUSCANY_NS, "CallbackID", TUSCANY_PREFIX); public static final QName CONVERSATION_ID_REFPARM_QN = new QName(Constants.SCA10_TUSCANY_NS, "ConversationID", TUSCANY_PREFIX); + public static long GLOBAL_AXIS_TIMEOUT = 240000L; + private Axis2ServiceClient serviceClient; private QName wsdlOperationName; @@ -143,7 +145,7 @@ public class Axis2BindingInvoker implements Invoker, DataExchangeSemantics { // ensure connections are tracked so that they can be closed by the reference binding MessageContext requestMC = operationClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE); requestMC.getOptions().setProperty(HTTPConstants.REUSE_HTTP_CLIENT, Boolean.TRUE); - requestMC.getOptions().setTimeOutInMilliSeconds(240000L); + requestMC.getOptions().setTimeOutInMilliSeconds(GLOBAL_AXIS_TIMEOUT); for ( PolicyHandler policyHandler : policyHandlerList ) { policyHandler.beforeInvoke(msg, requestMC, operationClient); |