Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-3511

CXF async client does not get all response callback back

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-fuse-6.2
    • jboss-fuse-6.1
    • CXF
    • None
    • % %

      When sending a big number of request (1000 in the test), not getting 1000 response callbacks every time. Sometimes, some responses are lost.

      The test sometimes succeeds and sometimes fails. When debugging in the internals of the java async client, we see that all responses are received but somehow, they are not all forwarded back to the CXF layer, and thus to the CXF client.

      The expectation is that, if approx ~ 1000 requests are fired, we should get all the 1000 response callbacks from the CXF's Async client.
      This happens sometimes, but testing this everytime, some 4-5 times, the response callbacks seem to be lost.

      JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
      factory.setServiceClass(clazz);
      factory.setAddress(address);
      T client = (T) factory.create();

      Client c = ClientProxy.getClient(client);
      AsyncHTTPConduit conduit = (AsyncHTTPConduit) c.getConduit();
      HTTPClientPolicy policy = conduit.getClient();
      conduit.setClient(policy);

            yfang@redhat.com Freeman(Yue) Fang
            rhn-support-vgohel Viral Gohel
            Tomas Rohovsky Tomas Rohovsky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: