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 Bug
    • Status: Resolved
    • Priority: Major 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: Java Client
    • 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);
      

        Issue Links

          Activity

          Hide
          Rajith Attapattu added a comment -

          The durable issue is fixed in http://svn.apache.org/viewvc?rev=1388642&view=rev
          The auto-delete issue is fixed in http://svn.apache.org/viewvc?rev=1388650&view=rev

          Show
          Rajith Attapattu added a comment - The durable issue is fixed in http://svn.apache.org/viewvc?rev=1388642&view=rev The auto-delete issue is fixed in http://svn.apache.org/viewvc?rev=1388650&view=rev

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development