jax-ws-api icon indicating copy to clipboard operation
jax-ws-api copied to clipboard

Standardize timeout settings

Open Tomas-Kraus opened this issue 2 years ago • 0 comments

I'd would be nice if the next specification standardizes connect and read timeout properties. These are so fundamental that they should exist in the in the BindingProvider interface with a javax.xml.ws. prefix.

Althought the CXF properties use javax.xml.ws, they are no standardized.

A little overview of several implementations: // Weblogic JAX-WS properties ((BindingProvider) port).getRequestContext().put("com.sun.xml.ws.connect.timeout", timeout); ((BindingProvider) port).getRequestContext().put("com.sun.xml.ws.request.timeout", timeout); // JDK JAX-WS properties ((BindingProvider) port).getRequestContext().put("com.sun.xml.internal.ws.connect.timeout", timeout); ((BindingProvider) port).getRequestContext().put("com.sun.xml.internal.ws.request.timeout", timeout); // JBOSS CXF JAX-WS properties, warning these might change in the future (CXF-5261) ((BindingProvider) port).getRequestContext().put("javax.xml.ws.client.connectionTimeout", timeout); ((BindingProvider) port).getRequestContext().put("javax.xml.ws.client.receiveTimeout", timeout);

Affected Versions

[2.3]

Source: https://github.com/javaee/metro-jax-ws/issues/1166 Author: glassfishrobot

Tomas-Kraus avatar Jun 02 '22 17:06 Tomas-Kraus