0 Replies Latest reply on Feb 10, 2016 5:28 AM by Marco Strauch

    Set Web Service Timeouts in Wildfly 10

    Marco Strauch Newbie

      Hi,

       

      I set the connction timeouts for soap request using the request properties:

       

      endpointPort.getRequestContext().put(BindingProviderProperties.REQUEST_TIMEOUT, config.getClientTimeoutSec() * 1000);

      endpointPort.getRequestContext().put(BindingProviderProperties.CONNECT_TIMEOUT, config.getConnectionTimeoutSec() * 1000);

       

      Using JBoss AS 6 this works fine and I got a org.jboss.ws.core.WSTimeoutException if the request did not return within the given timeout.

       

      Now in wildfly 10 this WSTimeoutException does not exist anymore  and no other timeout exception will be thrown if the request tooks to long.

       

      So how I could set the timeouts now in wildfly 10 and what kind of exception is being returned when the timeout occurs?

       

      Kind regards,

       

      Marco