I wrote this today at work. Others may find it useful also.<div><br></div><div>I wanted what rabbitmqctl seemed to lack, so I wrote this up quick & dirty. It is very simple, no validation, but functional. I also needed something to inject messages for testing purposes.</div>
<div><br></div><div>I run the JavaScript from a shell script called "rabbitutil":</div><div>--</div><div>#!/bin/bash</div><div><div>java -cp js.jar:commons-io-1.2.jar:rabbitmq-client.jar \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>org.mozilla.javascript.tools.shell.Main rabbitutil.js $@</div>
</div><div>--</div><div>and/or jrunscript (which I haven't really tested):</div><div>jrunscript -cp commons-io-1.2.jar:rabbitmq-client.jar rabbitutil.js</div><div><br></div><div>Source attached as "rabbitutil.txt", since .js is commonly filtered.</div>
<div><br></div><div>Cheers,</div><div><br></div><div>Derek P. Moore</div>