Hi Julio,
Thanks for your reply.
I have managed to set socket timeout. Till now, I have tried the following.
1. Configure the following in axis2.xml TransportSender http and https:
<parameter name="SO_TIMEOUT" locked="false">60000</parameter>
<parameter name="CONNECTION_TIMEOUT"
locked="false">60000</parameter>
Result: Failure. It doesn't take effect at all.
2. In client code, set options property.
options.setProperty(HTTPConstants.SO_TIMEOUT,new
Integer(so_timeout));
options.setProperty(HTTPConstants.CONNECTION_TIMEOUT,new
Integer(conn_timeout));
Result: Failure. It doesn't take effect at all.
3. Configure the following in axis2.xml TransportReceiver http:
<parameter name="requestTimeout"
locked="false">60000</parameter>
Result: Failure. It doesn't take effect at all.
4. In client code, set options timeout
options.setTimeOutInMilliSeconds(timeout);
Result: Success.
Since the first three ways of set timeout is not working, why it still exist
in Axis2? Is this a bug or my environment issue?
Regards,
Xinjun
On Nov 20, 2007 8:49 AM, juliocest <[EMAIL PROTECTED]> wrote:
>
> Dear Xinjun,
>
> First of all you have to import the packages below in the client code:
>
> import org.apache.axis2.client.Options;
> import org.apache.axis2.Constants;
>
> After,
>
> Options options = new Options();
>
> options.setProperty(HTTPConstans.SO_TIMEOUT, new Integer(360000);
> (timeout
> of 5 minutes)
>
>
> Try to do it.
>
> Julio
> Sao Carlos - SP - Brazil
>
> --
> View this message in context:
> http://www.nabble.com/-Axis2--Unable-to-set-socket-timeout-tf4836105.html#a13848812
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>