You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by naren <na...@gmail.com> on 2010/06/23 05:52:15 UTC
Axis2 ConnectionTimeout Problem
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
Re: Axis2 ConnectionTimeout Problem
Posted by naren <na...@gmail.com>.
Hi,
Axis2 1.5.1 creates its own MultithreadedHttpConnectionManager. Is there
any way to override this ?
Thanks,
Naren
Even though I am creating MultithreadedHttpConnectionManager, Axis
On Wed, Jun 23, 2010 at 7:01 PM, Deepal Jayasinghe <de...@opensource.lk>wrote:
> Did you try to set the connection timeout value, try that one too.
>
> Deepal
>
>
> On Tue, Jun 22, 2010 at 11:52 PM, naren <na...@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
>>
>
>
Re: Axis2 ConnectionTimeout Problem
Posted by Deepal Jayasinghe <de...@opensource.lk>.
Did you try to set the connection timeout value, try that one too.
Deepal
On Tue, Jun 22, 2010 at 11:52 PM, naren <na...@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
>