axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amila Suriarachchi <amilasuriarach...@gmail.com>
Subject Re: Connection to Axis Web Service gets stale when the Web Service App is bounced.
Date Thu, 11 Mar 2010 05:23:56 GMT
try setting these parameter at the axis2.xml file

<transportSender name="http"

class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
        <parameter name="PROTOCOL">HTTP/1.1</parameter>
        <parameter name="Transfer-Encoding">chunked</parameter>
        <parameter name="SO_TIMEOUT">60000</parameter>
        <parameter name="CONNECTION_TIMEOUT">60000</parameter>
    </transportSender>

thanks,
Amila.

On Thu, Mar 11, 2010 at 5:04 AM, Gauba, Naveen <c_ngauba@qualcomm.com>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 “Read
> timed out” 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-content-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 mechanism
> inside my app which can ping the service frequently and then re-initialize
> the service in case of ‘Read Time Out’ exceptions. Is there a different
> option? Could I configure something on the axis configurations that takes
> care of this issue?
>
>
>
> Regards
>
>
>
> Naveen Gauba
>
>
>



-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

Mime
View raw message