tt.execute(new TransactionCallback() {
public Object doInTransaction(TransactionStatus status) {
try {
sender.sendMessages(numMessages, syncSend);
} catch (JBIException e) {
throw new RuntimeJBIException(e);
}
return null;
}
});
//sender.sendMessages(NUM_MESSAGES, syncSend);