long start;
start = System.nanoTime();
for(int i = 0; i < MESSAGE_COUNT; i++) {
channel.basicPublish("", queueName,
MessageProperties.BASIC, MESSAGE);
}
QueueingConsumer consumer = new QueueingConsumer(channel);
channel.basicConsume(queueName, true, consumer);