Return-Path: Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: (qmail 27292 invoked from network); 11 Mar 2010 05:24:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Mar 2010 05:24:53 -0000 Received: (qmail 29919 invoked by uid 500); 11 Mar 2010 05:24:20 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 29527 invoked by uid 500); 11 Mar 2010 05:24:20 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 29519 invoked by uid 99); 11 Mar 2010 05:24:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Mar 2010 05:24:19 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of amilasuriarachchi@gmail.com designates 209.85.221.191 as permitted sender) Received: from [209.85.221.191] (HELO mail-qy0-f191.google.com) (209.85.221.191) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Mar 2010 05:24:18 +0000 Received: by qyk29 with SMTP id 29so9356370qyk.15 for ; Wed, 10 Mar 2010 21:23:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=OUbrWi3AdWXjVQXeRE2Fv0gChorObRB8GJ7oRJBBKlg=; b=sxfC70QHr+IXghQr6b3pNgH0+izSDjap2pGrFSaDrYTm8/vMslyiSPpvXdaPz8OALW vtcTcLGHvrVs4wzGEjZiQyKMyEeQ9KTqQxXifd4LRmwbR19HYhcs75uLs3b4f8JuhFim t28KBOvgMh3b3KxVfeSxSq8oYb3m16qPIFymM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=QMcOuJV4xKsHelquytl7U2r0Kx5Tzw0lLnqbqphJZUilBzob4Jk0s0FSsJOUJK9lRB K7URJIGZ0FZr/M8JWsv3qu7MhOzYnH9LZc067i8Mfz1o1B1l7i0GJwlsoQFWId5vL5pc Y8cPc8R6KQDu0eqmmPNM0L2dgIhecV0KF4zok= MIME-Version: 1.0 Received: by 10.229.191.75 with SMTP id dl11mr964016qcb.16.1268285036972; Wed, 10 Mar 2010 21:23:56 -0800 (PST) In-Reply-To: References: Date: Thu, 11 Mar 2010 10:53:56 +0530 Message-ID: <60708f4b1003102123n193a24b1gfb06d9b010a2ad35@mail.gmail.com> Subject: Re: Connection to Axis Web Service gets stale when the Web Service App is bounced. From: Amila Suriarachchi To: java-dev@axis.apache.org Content-Type: multipart/alternative; boundary=0016362841f61a4cb804817f9fb3 --0016362841f61a4cb804817f9fb3 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable try setting these parameter at the axis2.xml file HTTP/1.1 chunked 60000 60000 thanks, Amila. On Thu, Mar 11, 2010 at 5:04 AM, Gauba, Naveen wrote= : > Hi Guys > > > > My spring application is using an external Axis Web Service. I initialize > the Service Stub during my application startup and keep a connection for > that. > > > > When the external Axis Web Service was bounced I started getting =93Read > timed out=94 error when my app tried to talk to the web service. > > > > 00000027 HTTPSender I org.apache.axis2.transport.http.HTTPSender > sendViaPost Unable to sendViaPost to url[http://servername:9080/abcd-cont= ent-soap/MyService > ] > java.net.SocketTimeoutException: Read > timed out > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(SocketInputStream.java:155) > > > > How do I fix this issue? I understand that I can build a polling mechanis= m > inside my app which can ping the service frequently and then re-initializ= e > the service in case of =91Read Time Out=92 exceptions. Is there a differe= nt > option? Could I configure something on the axis configurations that takes > care of this issue? > > > > Regards > > > > Naveen Gauba > > > --=20 Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ --0016362841f61a4cb804817f9fb3 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable try setting these parameter at the axis2.xml file

<transportSende= r name=3D"http"
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 class=3D"org.apache.axis2.transport.http.CommonsHTTPTr= ansportSender">
=A0=A0=A0=A0=A0=A0=A0 <parameter name=3D"= ;PROTOCOL">HTTP/1.1</parameter>
=A0=A0=A0=A0=A0=A0=A0 <parameter name=3D"Transfer-Encoding">= ;chunked</parameter>
=A0=A0=A0=A0=A0=A0=A0 <parameter name=3D&q= uot;SO_TIMEOUT">60000</parameter>
=A0=A0=A0=A0=A0=A0=A0 &l= t;parameter name=3D"CONNECTION_TIMEOUT">60000</parameter>= ;
=A0=A0=A0 </transportSender>

thanks,
Amila.

On Thu, Mar 11, 2010 at 5:04 AM, Gauba, Naveen <c_ngauba@qualcomm.com= > wrote:

Hi Guys

=A0

My spring application is using an external Axis Web = Service. I initialize the Service Stub during my application startup and keep a conn= ection for that.

=A0

When the external Axis Web Service was bounced I sta= rted getting =93Read timed out=94 error when my app tried to talk to the web service.

=A0

00000027 HTTPSender=A0=A0=A0 I org.apache.axis2.transport.http.HTTPSender sendViaPost Unable to sendViaPos= t to url[ http://servername:9080/abcd-content-soap/MyService]
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 java.net.SocketTimeoutException: Read timed out
=A0=A0=A0=A0=A0=A0=A0 at java.net.SocketInputStream.socketRead0(Native Method)
=A0=A0=A0=A0=A0=A0=A0 at java.net.SocketInputStream.read(SocketInputStream.java:155)

=A0

How do I fix this issue? I understand that I can bui= ld a polling mechanism inside my app which can ping the service frequently and t= hen re-initialize the service in case of =91Read Time Out=92 exceptions. Is there a different option? Could I configure something on the axis configurations th= at takes care of this issue?

=A0

Regards

=A0

Naveen Gauba

=A0




--
Amila Suriarachchi
W= SO2 Inc.
blog: http://am= ilachinthaka.blogspot.com/
--0016362841f61a4cb804817f9fb3--