Package javax.transaction.xa

Examples of javax.transaction.xa.XAResource.commit()


         ProxyAssertSupport.assertTrue(xids[0].equals(xid1) || xids[1].equals(xid1));
         ProxyAssertSupport.assertTrue(xids[0].equals(xid2) || xids[1].equals(xid2));

         res.commit(xid1, false);

         res.commit(xid2, false);

         conn3 = JMSTestCase.cf.createConnection();

         Session sessRec = conn3.createSession(false, Session.AUTO_ACKNOWLEDGE);
         MessageConsumer cons = sessRec.createConsumer(HornetQServerTestCase.queue2);
View Full Code Here


         ProxyAssertSupport.assertEquals(0, xids2.length);

         ProxyAssertSupport.assertTrue(xids[0].equals(xid1) || xids[1].equals(xid1));
         ProxyAssertSupport.assertTrue(xids[0].equals(xid2) || xids[1].equals(xid2));

         res.commit(xid1, false);

         res.commit(xid2, false);

         conn3 = JMSTestCase.cf.createConnection();
View Full Code Here

         ProxyAssertSupport.assertTrue(xids[0].equals(xid1) || xids[1].equals(xid1));
         ProxyAssertSupport.assertTrue(xids[0].equals(xid2) || xids[1].equals(xid2));

         res.commit(xid1, false);

         res.commit(xid2, false);

         conn3 = JMSTestCase.cf.createConnection();

         Session sessRec = conn3.createSession(false, Session.AUTO_ACKNOWLEDGE);
         MessageConsumer cons = sessRec.createConsumer(HornetQServerTestCase.queue1);
View Full Code Here

         ProxyAssertSupport.assertEquals(0, xids2.length);

         ProxyAssertSupport.assertTrue(xids[0].equals(xid1) || xids[1].equals(xid1));
         ProxyAssertSupport.assertTrue(xids[0].equals(xid2) || xids[1].equals(xid2));

         res.commit(xids[0], false);

         res.commit(xids[1], false);

         conn3 = JMSTestCase.cf.createConnection();
View Full Code Here

         ProxyAssertSupport.assertTrue(xids[0].equals(xid1) || xids[1].equals(xid1));
         ProxyAssertSupport.assertTrue(xids[0].equals(xid2) || xids[1].equals(xid2));

         res.commit(xids[0], false);

         res.commit(xids[1], false);

         conn3 = JMSTestCase.cf.createConnection();

         Session sessRec = conn3.createSession(false, Session.AUTO_ACKNOWLEDGE);
         MessageConsumer cons = sessRec.createConsumer(HornetQServerTestCase.queue1);
View Full Code Here

         ProxyAssertSupport.assertEquals(0, xids2.length);

         ProxyAssertSupport.assertTrue(xids[0].equals(xid1) || xids[1].equals(xid1));
         ProxyAssertSupport.assertTrue(xids[0].equals(xid2) || xids[1].equals(xid2));

         res.commit(xids[0], false);

         res.commit(xids[1], false);

         conn3 = JMSTestCase.cf.createConnection();
View Full Code Here

         ProxyAssertSupport.assertTrue(xids[0].equals(xid1) || xids[1].equals(xid1));
         ProxyAssertSupport.assertTrue(xids[0].equals(xid2) || xids[1].equals(xid2));

         res.commit(xids[0], false);

         res.commit(xids[1], false);

         conn3 = JMSTestCase.cf.createConnection();

         Session sessRec = conn3.createSession(false, Session.AUTO_ACKNOWLEDGE);
View Full Code Here

      {
         HornetQJMSServerLogger.LOGGER.debug("Commit " + xaResource + " xid " + " onePhase=" + onePhase);
      }
      try
      {
         xaResource.commit(xid, onePhase);
      }
      catch (XAException e)
      {
         throw check(e);
      }
View Full Code Here

         * @see org.apache.jackrabbit.webdav.jcr.transaction.TxLockManagerImpl.Transaction#commit(TransactionResource)
         */
        public void commit(TransactionResource resource) throws DavException {
            XAResource xaRes = getXAResource(resource);
            try {
                xaRes.commit(xid, false);
                removeLocalTxReferences(resource);
            } catch (XAException e) {
                throw new DavException(DavServletResponse.SC_FORBIDDEN, e.getMessage());
            }
        }
View Full Code Here

        //Check if got connection closed event but not connection error event
        assertTrue(aes5.didConnectionClosedEventHappen());
        assertFalse(aes5.didConnectionErrorEventHappen());
        aes5.resetState();
        xar.end(xid, XAResource.TMSUCCESS);
        xar.commit(xid, true);

        xac.close();
    }
   
    public void testClosedCPDSConnection() throws SQLException, Exception {
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.