Return-Path: Delivered-To: apmail-axis-java-user-archive@www.apache.org Received: (qmail 30208 invoked from network); 23 Jun 2010 13:32:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Jun 2010 13:32:34 -0000 Received: (qmail 26531 invoked by uid 500); 23 Jun 2010 13:32:32 -0000 Delivered-To: apmail-axis-java-user-archive@axis.apache.org Received: (qmail 24973 invoked by uid 500); 23 Jun 2010 13:32:27 -0000 Mailing-List: contact java-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@axis.apache.org Delivered-To: mailing list java-user@axis.apache.org Received: (qmail 24952 invoked by uid 99); 23 Jun 2010 13:32:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jun 2010 13:32:26 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.214.173] (HELO mail-iw0-f173.google.com) (209.85.214.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jun 2010 13:32:19 +0000 Received: by iwn10 with SMTP id 10so3234313iwn.32 for ; Wed, 23 Jun 2010 06:31:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.1.82 with SMTP id 18mr2982421icf.55.1277299917063; Wed, 23 Jun 2010 06:31:57 -0700 (PDT) Received: by 10.231.200.138 with HTTP; Wed, 23 Jun 2010 06:31:56 -0700 (PDT) In-Reply-To: References: Date: Wed, 23 Jun 2010 09:31:56 -0400 Message-ID: Subject: Re: Axis2 ConnectionTimeout Problem From: Deepal Jayasinghe To: java-user@axis.apache.org Content-Type: multipart/alternative; boundary=90e6ba181846d406250489b28f4a X-Virus-Checked: Checked by ClamAV on apache.org --90e6ba181846d406250489b28f4a Content-Type: text/plain; charset=ISO-8859-1 Did you try to set the connection timeout value, try that one too. Deepal On Tue, Jun 22, 2010 at 11:52 PM, naren 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 > --90e6ba181846d406250489b28f4a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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,
=A0I am us= ing Axis2 1.5.1 for creating a webservice client.
=A0I am getting a Conn= ectionPoolTimeoutException with concurrent threads.

=A0So far I have tried the below options but without success:
=A01) = options.
setCallTransportCleanup(true);

=A02) serviceClient.cleanupTransport();

=A03)=A0 HttpConnectionM= anagerParams params =3D new HttpConnectionManagerParams();
=A0=A0=A0=A0= =A0=A0=A0 params.setDefaultMaxConnectionsPerHost(1);
=A0=A0=A0=A0=A0=A0= =A0 multiThreadedHttpConnectionManager.setParams(params);
=A0=A0=A0=A0=A0=A0=A0 operationalClient.getOptions().setProperty(HTTPConsta= nts.REUSE_HTTP_CLIENT, MWConstants.TRUE);
=A0=A0=A0=A0=A0=A0=A0 operatio= nalClient.getOptions().setProperty(HTTPConstants.AUTO_RELEASE_CONNECTION, t= rue);
=A0=A0=A0=A0=A0=A0=A0 HttpClient httpClient =3D new HttpClient(mul= tiThreadedHttpConnectionManager);
=A0=A0=A0=A0=A0=A0=A0 httpClient.setHttpConnectionManager(multiThreadedHttp= ConnectionManager);
=A0=A0=A0=A0=A0=A0=A0 operationalClient.getOptions()= .setProperty(HTTPConstants.CACHED_HTTP_CLIENT,httpClient);

Any poin= ters would be helpful.
Thanks in Advance.


Regards,
Naren

--90e6ba181846d406250489b28f4a--