Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-4312

SpyConnectionConsumer should fire asynchFailure if it receives an error

XMLWordPrintable

      Currently, the SpyConnectionConsumer does not fire an asynchFailure()
      (which will in turn fire the exception listener) if it receives an error during the receive()

      It assumes that the ServerIL will have already done this, but in the case of HTTPServerIL it does not.
      The HTTPServerIL is "stateless" and contains no reference to the org.jboss.mq.Connection on which it can fire that error.

      The fix in org.jboss.mq.SpyConnectionConsumer::run()
      is schematically:

      try
      {
      // Receive handling
      }
      catch (Throwable t)
      {
      close();
      + connection.asynchFailure("Error during receive", t);
      }

              adrian.brock Adrian Brock (Inactive)
              adrian.brock Adrian Brock (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: