O'Reilly logo

RabbitMQ Cookbook by Sigismondo Boschi, Gabriele Santomaggio

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding the alternate exchange extension

We have already seen how to deal with messages published to an exchange that do not reach any queue in the Handling unroutable messages recipe in Chapter 1, Working with AMQP. AMQP lets the producer be acknowledged on this condition that can eventually decide whether to deliver the messages again to a different destination.

With this extension, we can specify an alternate exchange in which the broker will route these messages, without any more intervention from the producer, as shown in the sources of this recipe in Chapter02/Recipe05/Java/src/rmqexample.

Getting ready

To use this recipe, we need to set up the Java development environment, as indicated in the Introduction section of Chapter 1, Working ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required