Spring AMQP
  1. Spring AMQP
  2. AMQP-299

add note in reference manual about reconnection and generated queue names

    Details

    • Type: Task Task
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      One sentence could be added in section 2.12.1 ("Automatic Declaration of Exchanges, Queues and Bindings") to clarify that for redeclaration of a queue to occur at reconnection, a queue name must be assigned explicitly. See forum reference for more info.

        Activity

        Hide
        Gary Russell added a comment -

        Resolving this as invalid - I was mistaken in the forum - his queues were declared as anonymous outside of the Spring context, which is why the container could not redeclare after the failure.

        I have re-tested and <rabbit:queue/>}}s are correctly redeclared whether or not they have a name attribute (and the container reconnects). When there is no name attribute, Spring-AMQP declares an {{Anonymous queue where the queue name is a UUID - it does not use a broker-generated queue name (which would change during re-declaration after a failure).

        Show
        Gary Russell added a comment - Resolving this as invalid - I was mistaken in the forum - his queues were declared as anonymous outside of the Spring context, which is why the container could not redeclare after the failure. I have re-tested and <rabbit:queue/>}}s are correctly redeclared whether or not they have a name attribute (and the container reconnects). When there is no name attribute, Spring-AMQP declares an {{Anonymous queue where the queue name is a UUID - it does not use a broker-generated queue name (which would change during re-declaration after a failure).

          People

          • Assignee:
            Gary Russell
            Reporter:
            Mark Fisher
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: