In this example, we show how to use a single publish to send a message with multiple routing keys. The standard AMQP doesn't provide this feature but luckily, RabbitMQ does so using a message properties header. This extension is called sender-selected distribution.
The behavior of the extension is similar to e-mail logics. It uses Carbon Copy (CC) and
Blind Carbon Copy (BCC). This is the reason you will find CC and BCC consumers in the source code, located in
To use this recipe, we need to set up the Java development environment as indicated in the Introduction