protected void createProducers() throws JMSException {
producers = new MemProducer[producerCount];
for (int i = 0; i < producerCount; i++) {
producers[i] = new MemProducer(connectionFactory, destination);
if (durable) {
producers[i].setDeliveryMode(DeliveryMode.PERSISTENT);
} else {
producers[i].setDeliveryMode(DeliveryMode.NON_PERSISTENT);
}