Announcement Announcement Module
Collapse
No announcement yet.
Programatically adding bindings Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Programatically adding bindings

    Hi,
    I've got a spring amqp based project I've setup that uses annotation configuration extending from abstractrabbitfactory to declare all the usual things (queue, exchange, simplemessagelistenercontainer, connectionfactory etc) and this works fine.

    I'd like to programatically add some bindings rather than declare them in the beans annotations, however I can't easily see how to do this through spring amqp.

    Can anyone help? Thanks in advance.

  • #2
    Answer?

    I think I may have just found the answer myself actually (always the same just after you post a question!).

    Am I right in thinking I get a reference to AmqpAdmin from the context bean and declare them using that?

    Comment


    • #3
      Originally posted by eazynow View Post
      Am I right in thinking I get a reference to AmqpAdmin from the context bean and declare them using that?
      Correct. Or you can create an AmqpAdmin yourself from a ConnectionFactory.

      Comment

      Working...
      X