ProducerMessages pM = (ProducerMessages) sendings.get(dest.getName());
if (pM == null) {
pM = new ProducerMessages(dest.getName());
sendings.put(dest.getName(), pM);
}
pM.addMessage(msg);
// If the transaction was scheduled, re-scheduling it:
if (scheduled)
closingTask.start();
}