Destination destination = new ActiveMQQueue(destinationName);
ActiveMQMessageProducer producer2 = (ActiveMQMessageProducer) session2.createProducer(destination);
producer2.send(session2.createTextMessage("Local-TX"));
if (session2.isTransacted()) {
session2.rollback();
}
session2.close();
resource.commit(tid, true);