Web service (JAX-WS) timeout
//1 minute for connection
((BindingProvider) wsPort).getRequestContext().put("com.sun.xml.ws.connect.timeout", 1 * 60 * 1000);
//3 minutos for request
((BindingProvider) wsPort).getRequestContext().put("com.sun.xml.ws.request.timeout", 3 * 60 * 1000);
or
import com.sun.xml.ws.developer.JAXWSProperties
useJAXWSProperties.CONNECT_TIMEOUT
andJAXWSProperties.REQUEST_TIMEOUT
留言
張貼留言