Sometimes, it is useful to just have an idea of the messages that are really traveling through a broker by just logging all of them to the standard output.
It is possible to trace those messages using a simple application provided with the RabbitMQ Java client.
To run this recipe, you need to have RabbitMQ up and running on the standard port
5672 and the RabbitMQ Java client library.
RabbitMQ includes a tracing utility in the Java client library that you can put in action by following these steps.
./runjava.sh com.rabbitmq.tools.Tracer ...