axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas" <dava...@gmail.com>
Subject Re: Axis2 - how to set client timeout
Date Mon, 05 Feb 2007 20:51:30 GMT
http://wso2.org/library/230#SO_TIMEOUT

On 2/5/07, Bo Xie <mrboxie@gmail.com> wrote:
> Hi All,
>
>   Please help me in setting up the client timeout. I tried the following, it
> did not work.
>
>
> stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.
>                     http.HTTPConstants.CONNECTION_TIMEOUT ,
> new Integer("7200000"));
>
>   With this, I still see the client connection timed out exception in about
> 5 seconds when the server side is taking its time(sometime a couple of
> minutes).
>
> run.client:
>       [java] org.apache.axis2.AxisFault: Read timed out; nested exception
> is:
>      [java]     java.net.SocketTimeoutException: Read timed out; nested
> exception is:
>      [java]     org.apache.axis2.AxisFault: Read timed out; nested exception
> is:
>      [java]     java.net.SocketTimeoutException: Read timed out
>      [java]     at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)
>      [java]     at org.apache.axis2.engine.AxisEngine.send
> (AxisEngine.java:670)
>      [java]     at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:365)
>      [java]     at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java
> :295)
>      [java]     at
> samples.quickstart.service.xmlbeans.StockQuoteServiceStub.getPrice(StockQuoteServiceStub.java:193)
>      [java]     at
> samples.quickstart.clients.XMLBEANSClient.getPrice(XMLBEANSClient.java:48)
>      [java]     at
> samples.quickstart.clients.XMLBEANSClient.main(XMLBEANSClient.java:16)
>
> Thanks,
> -Bo
>
>


-- 
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message