axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepal Jayasinghe <dee...@opensource.lk>
Subject Re: Axis2 ConnectionTimeout Problem
Date Wed, 23 Jun 2010 13:31:56 GMT
Did you try to set the connection timeout value, try that one too.

Deepal

On Tue, Jun 22, 2010 at 11:52 PM, naren <naren.s.n@gmail.com> wrote:

> Hi,
>  I am using Axis2 1.5.1 for creating a webservice client.
>  I am getting a ConnectionPoolTimeoutException with concurrent threads.
>
>  So far I have tried the below options but without success:
>  1) options.
> setCallTransportCleanup(true);
>
>  2) serviceClient.cleanupTransport();
>
>  3)  HttpConnectionManagerParams params = new
> HttpConnectionManagerParams();
>         params.setDefaultMaxConnectionsPerHost(1);
>         multiThreadedHttpConnectionManager.setParams(params);
>
> operationalClient.getOptions().setProperty(HTTPConstants.REUSE_HTTP_CLIENT,
> MWConstants.TRUE);
>
> operationalClient.getOptions().setProperty(HTTPConstants.AUTO_RELEASE_CONNECTION,
> true);
>         HttpClient httpClient = new
> HttpClient(multiThreadedHttpConnectionManager);
>
> httpClient.setHttpConnectionManager(multiThreadedHttpConnectionManager);
>
> operationalClient.getOptions().setProperty(HTTPConstants.CACHED_HTTP_CLIENT,httpClient);
>
>
> Any pointers would be helpful.
> Thanks in Advance.
>
>
> Regards,
> Naren
>

Mime
View raw message