By default, AMQP supports exchange-to-queue but it doesn't support exchange-to-exchange bindings. In this example, we show how to use the RabbitMQ exchange-to-exchange extension.
In this example, we will merge the messages coming from two different exchanges to a third one. You can find the source code in
To use this recipe, we need to set up the Java development environment as indicated in the Introduction section of Chapter 1, Working with AMQP, and run the producers from the Broadcasting messages and Working with message routing using topic exchanges recipes.
Complete the following steps to use the RabbitMQ exchange-to-exchange ...