Package org.apache.activemq

Examples of org.apache.activemq.ActiveMQSession.rollback()


       Connection connection2 = connectionFactory.createConnection();
       connection2.start();
       ActiveMQSession session2 = (ActiveMQSession) connection2.createSession(false, Session.AUTO_ACKNOWLEDGE);

       if (session2.isTransacted()) {
           session2.rollback();
       }

       session2.close();

       resource.commit(tid, true);
View Full Code Here


       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);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.