if (queueNames != null) {
totalNumberOfQueues = queueNames.length;
}
ICQSMessagePersistence messagePersistence = PersistenceFactory.getCQSMessagePersistence();
for (int i=0; i<totalNumberOfQueues; i++) {
String queueName = fixedQueueName + rand.nextInt() + "_" + i;
if (queueNames != null) {
queueName = queueNames[i];
}
String myQueueUrl = createQueue(queueName);
queueUrls.add(myQueueUrl);
if (CQSStressTestProperties.getInstance().getNumberOfSendersPerQueue() > 0) {
messagePersistence.clearQueue(myQueueUrl, 0);
}
logger.info("QueueUrl" + i + " = " + myQueueUrl);
//first tickle the empty queue population by calling a receive when nothing is in the queue