Announcement Announcement Module
Collapse
No announcement yet.
Is there a way to disable autodeclaration of queues, exchanges and bindings? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is there a way to disable autodeclaration of queues, exchanges and bindings?

    Is there a way to disable autodeclaration of queues, exchanges and bindings? As far as I can tell, the only way to do it is to provide an alternate implementation of RabbitAdmin.

    We define a few Queues as beans in a common java based ApplicationConfiguration which are provided to other beans through qualifiers. We wanted to declare these manually during the creation of other beans based on the type of component being started etc... Unfortunately, because this class is finding all beans of type Exchange, Queue, Binding, this class is creating Queues, Exchanges, Bindings which it should not. These Queues need to be beans because multiple other beans depend on them.

  • #2
    Sure, the RabbitAdmin has an 'autoStartup' property. It's true by default, but if you set that to FALSE, then it should not auto-declare anything.

    Also, if you do want to take advantage of its declaration functionality, but manually, you can call initialize() directly.

    Hope that helps.
    -Mark

    Comment


    • #3
      Duh, I am an idiot. Thanks!

      Comment

      Working...
      X