Trying out some Rabbit MQ APIs in Java and Ruby