Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-19824

Workaround for AMQP connection race condition

XMLWordPrintable

      We might send messages before the Emitter is connected.

      Doing the following before sending on the Emitter should guard against this

       while (!emitter.hasRequests()) {
                      try {
                          Thread.sleep(100);
                      } catch (InterruptedException e) {
                      }
                  }
      

              kkhan1@redhat.com Kabir Khan
              kkhan1@redhat.com Kabir Khan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: