-
Book Overview & Buying
-
Table Of Contents
RabbitMQ Cookbook
By :
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.
Download the latest version of the RabbitMQ Java client library from http://www.rabbitmq.com/java-client.html.
Unpack it and enter its directory.
Run the Java tracer by running:
./runjava.sh com.rabbitmq.tools.Tracer
Run the Java client that is to be debugged and that connects to port 5673. For this recipe, we will use another Java tool included in the Java client library, by invoking:
./runjava.sh com.rabbitmq.examples.PerfTest -h amqp://localhost...
Change the font size
Change margin width
Change background colour