[
https://issues.apache.org/jira/browse/TUSCANY-1997?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ant elder updated TUSCANY-1997:
-------------------------------
Attachment: tuscany-binding-ws-axis2-1.1-TUSCANY-1997.jar
Ok here's what you've ask for - an interim fix that just uses a public static
variable to set the max connections. You haven't said which release of Tuscany
you're on so this is based on the 1.1 tag. Say if you need a different level,
different fix or need the tuscany-sca-all jar including this fix as well.
The patched jar is attached to this JIRA as
tuscany-binding-ws-axis2-1.1-TUSCANY-1997.jar, the diff of the fix is:
Index:
src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceClient.java
===================================================================
---
src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceClient.java
(revision 630433)
+++
src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2ServiceClient.java
(working copy)
@@ -78,6 +78,8 @@
private WebServiceBinding wsBinding;
private ServiceClient serviceClient;
private static final QName SOAP12_INTENT = new
QName("http://www.osoa.org/xmlns/sca/1.0", "soap12");
+
+ public static int httpMaxConnections = 2;
public Axis2ServiceClient(RuntimeComponent component,
AbstractContract contract,
@@ -120,7 +122,7 @@
{
MultiThreadedHttpConnectionManager connectionManager = new
MultiThreadedHttpConnectionManager();
HttpConnectionManagerParams connectionManagerParams = new
HttpConnectionManagerParams();
- connectionManagerParams.setDefaultMaxConnectionsPerHost(2);
+
connectionManagerParams.setDefaultMaxConnectionsPerHost(httpMaxConnections );
connectionManagerParams.setTcpNoDelay(true);
connectionManagerParams.setStaleCheckingEnabled(true);
connectionManagerParams.setLinger(0);
> Axis binding does not allow external configuration to increase the number of
> the maximum connections opened.
> ------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-1997
> URL: https://issues.apache.org/jira/browse/TUSCANY-1997
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Axis Binding Extension
> Environment: Solaris , Windows , Websphere , Tomcat
> Reporter: Catalin Boloaja
> Assignee: Jean-Sebastien Delfino
> Fix For: Java-SCA-1.2
>
> Attachments: tuscany-binding-ws-axis2-1.1-TUSCANY-1997.jar
>
>
> In a high volume situation the default setting for Axis2 is 2 connections per
> host.
> The default protocol being HTTP 1.1 , this means that only 2 POST requests
> can be issued at the same time.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]