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

    cxf async client read timeout in jboss7.1

    medello

      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"

             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

             xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"

             xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration

                 http://cxf.apache.org/schemas/configuration/http-conf.xsd

                 http://www.springframework.org/schema/beans

                 http://www.springframework.org/schema/beans/spring-beans.xsd">

       

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

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

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

        </http-conf:conduit>

      </beans>