Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-4277

[Java client] 0-10 client path cant declare durable/auto-delete exchanges when using 'Address' based destinations

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.6, 0.7, 0.8, 0.9, 0.10, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16
    • Fix Version/s: 0.19
    • Component/s: JMS AMQP 0-x
    • Labels:
      None

      Description

      0-10 client path cant declare durable/auto-delete exchanges when using 'Address' based destinations.

      The became clear via QPID-4261 when adding support for specifying the exchange properties ( auto-delete/durable etc) used when issuing ExchangeDeclares during Consumer/Producer creation when using BindingURL based destinations with the 0-8/0-9/0-9-1 (and 0-10) client path. The default 'false' values for durable/auto-delete in the expanded exchange declare method signature within AMQSession_0_10 was picked up by the code handling Address based destinations, meaning that although support for specifying these properties with Address strings should already be present, the values arent being used:

      @@ -1244,7 +1230,7 @@ public class AMQSession_0_10 extends AMQ
                                       dest.getExchangeClass().asString(),
                                       dest.getTargetNode().getAlternateExchange(),
                                       dest.getTargetNode().getDeclareArgs(),
      -                                false);
      +                                false, false, false);
                               if (isConsumer && !isQueueExist(dest,(QueueNode)dest.getSourceNode(),true))
                               {
                                   createSubscriptionQueue(dest,noLocal);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rajith Rajith Attapattu
                Reporter:
                gemmellr Robbie Gemmell
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: