Results 1 to 3 of 3

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

  1. #1
    Join Date
    Jan 2012
    Posts
    24

    Question 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. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    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

  3. #3
    Join Date
    Jan 2012
    Posts
    24

    Default

    Duh, I am an idiot. Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •