Results 1 to 2 of 2

Thread: Dynamic bindings and failover RabbitMq

  1. #1
    Join Date
    Jan 2012
    Posts
    1

    Default Dynamic bindings and failover RabbitMq

    We have a need to dynamically add and remove bindings while our application is running. We currently use the AmqpAdmin to do this which works pretty well at startup.

    The problem we are having is if we lose connection to the broker, our bindings are lost as well. I see that the recommended way to do bindings is to declare them as beans which will deal with this, but because of our requirements I was looking for some type of listener we could attach to be triggered upon reconnect. Any suggestions?

  2. #2
    Join Date
    Jun 2005
    Posts
    4,232

    Default

    AmqpAdmin is actually implemented as a listener. You could borrow from there and register the listener with the Spring ConnectionFactory.

Tags for this Thread

Posting Permissions

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