Uploaded image for project: 'Spring AMQP'
  1. Spring AMQP
  2. AMQP-46

Move the declaration of queues, exchanges, and bindings into AmqpAdmin

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 1.0.0.M2
    • Component/s: RabbitMQ
    • Labels:
      None

      Description

      This code is currently in the abstract @Configuration support class.

      We should be able to follow the same approach in AmqpAdmin: it can implement SmartLifecycle with autoStartup set to true... and perhaps determined by a boolean flag (which should be 'true' by default), it will declare all Exchange, Queue, and Binding instances that it finds in the context.

      This will only work for the case that all these components are being defined within the same virtual host (basically, they are declared on a Channel returned from a Connection returned from the AmqpAdmin ConnectionFactory, so that is the limitation). Using AmqpAdmin directly (and setting the boolean flag to false) is a perfectly valid option for those cases. We might want to explore some other ideas in the future (like nesting the resources within an outer tag that provides the connection-factory to use for that set).

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open In Progress In Progress
          3d 21h 6m 1 Mark Fisher 09/Aug/10 10:48 AM
          In Progress In Progress Resolved Resolved
          1h 2m 1 Mark Fisher 09/Aug/10 11:50 AM
          Resolved Resolved Closed Closed
          168d 17h 16m 1 Mark Fisher 25/Jan/11 5:06 AM

            People

            • Assignee:
              mark.fisher Mark Fisher
              Reporter:
              mark.fisher Mark Fisher
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: