0 Replies Latest reply on Oct 30, 2013 1:14 PM by diomede illuzzi

    cxf async client read timeout in jboss7.1

    diomede illuzzi Newbie

      I'm facing a problem with a JAX-WS web service client embedded in the jboss.


      the client performs asynchronous web services call, and, if used stand alone, it works fine, but, if deployed into the jboss AS, when the server takes more than 60 seconds to generate the response (this is the default cxf timeout for the async calls), it generates a read timeout error, because


      16:18:17,667 ERROR [stderr] (Thread-77) java.util.concurrent.ExecutionException: java.net.SocketTimeoutException: Read timed out

      16:18:17,669 ERROR [stderr] (Thread-77)         at org.apache.cxf.jaxws.JaxwsClientCallback$2.get(JaxwsClientCallback.java:97)


      I think that setting a different timeout would solve the problem, but I can't understand how to do this.


      I tried to act on cxf configuration including the cxf.xml file (see below) in the deployed archive, without any effect


      <beans xmlns="http://www.springframework.org/schema/beans"








        <http-conf:conduit name="*.http-conduit">

          <http-conf:client ReceiveTimeout="0" />

          <http-conf: ReceiveTimeout="0" />