dev@jax-ws.java.net

Re: JAX_WS RI Client inconsistent timeout properties

From: Martin Grebac <martin.grebac_at_oracle.com>
Date: Tue, 15 May 2012 11:43:07 +0200

Hi,

On 5/15/12 11:24 AM, ns_dhillon_at_hotmail.com wrote:
> 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?
? com.sun.xml.internal.ws.developer.JAXWSProperties

> 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.
What rumours? Look into JAXWSProperties javadoc:
http://java.net/projects/jax-ws/sources/sources/content/branches/jaxws22/jaxws-ri/rt/src/com/sun/xml/ws/developer/JAXWSProperties.java?rev=13113

   MartiNG