[rabbitmq-discuss] Broker data

Matthias Radestock matthias at lshift.net
Mon Mar 23 20:02:55 GMT 2009


Chris Pettitt wrote:
> A few weeks back I was looking at using JInterface to create a JMX
> interface for RabbitMQ. I still haven't had cycles to work on it, but
> one of the immediate issues I saw was that I could not use
> rabbitmq_control.erl (the actual module for rabbitmqctl) directly,
> because it does not return the results, but instead prints them to
> stdout. You can make the same RPC calls that rabbitmqctl does though
> to get the results.

rabbit_control.erl is just a thin wrapper around the internal APIs. It 
deals with option parsing and result presentation. So calling the 
internal APIs directly, as you suggest, is indeed the way to go if you 
want to expose the rabbit_control functionality programmatically.


More information about the rabbitmq-discuss mailing list