dev@jax-ws.java.net

JAX_WS RI Client inconsistent timeout properties

From: <ns_dhillon_at_hotmail.com>
Date: Tue, 15 May 2012 09:24:43 +0000 (GMT)

Hi,

I was adding CONNECT and READ timeouts for JAX-WS RI based clients as
per instructions at
http://metro.java.net/guide/ch05.html#http-timeouts.

But unfortunately JAXWSProperties/BindingProperties doesn't exist in
Java 1.6.25?
So I thought to hard-wire the properties like below, which seems to
work -
dispatch.getRequestContext().put("com.sun.xml.internal.ws.connect.timeo
ut", 20000);
dispatch.getRequestContext().put("com.sun.xml.internal.ws.request.timeo
ut", 20000);

Also, there are rumours that properties are changed between JAX-WS RI
versions and for some versions properties might be
"com.sun.xml.ws.connect.timeout" and "com.sun.xml.ws.request.timeout" ?

I will appreciate if you could clarify what the correct properties are?
This will greatly benefit many developers who are confused like me.

Regards, Narayan