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....@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
>

Reply via email to