Hi,

Looks like the SO_TIMEOUT value is overwritten by the following timeout, so
the doc is not accurate.

stub._getServiceClient().getOptions().setTimeOutInMilliSeconds().

Thanks,
-Bo

On 2/5/07, Davanum Srinivas <[EMAIL PROTECTED]> wrote:

http://wso2.org/library/230#SO_TIMEOUT

On 2/5/07, Bo Xie <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to