Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2054

Artemis appears to never issue a JMS callback on error

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.6.2
    • None
    • Broker
    • None

    Description

      I'm trying to use artemis for Brave (zipkin java tracer) testing of JMS 2.0 implementation.

      I've noticed that the completion listener is never called on error. This might be a concern beyond my testing. Here's how I found this..

       

      I traced the use of CompletionListener in org.apache.activemq.artemis.jms.client.ActiveMQMessageProducer. At what's currently line 515, it is used, but wrapped with a type that will never call the callback.

      code
      if (completionListener != null)

      { clientProducer.send(address, coreMessage, new CompletionListenerWrapper(completionListener, jmsMessage, this)); }

      else

      { clientProducer.send(address, coreMessage); }

      code

      Also, all catch blocks won't call the callback either.

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              adriancole Adrian Cole
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: