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

Requesting resolution: Standardize timeout settings

Open h908714124 opened this issue 5 months ago • 1 comments

Hello, since I could not find a reference, may I ask if or how this old issue was resolved?

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

That is, which of the following are the correct way to set connect and receive timeouts:

((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);

Many thanks.

h908714124 avatar Sep 25 '24 13:09 h908714124