Package org.jboss.narayana.blacktie.jatmibroker.tx

Examples of org.jboss.narayana.blacktie.jatmibroker.tx.TXINFO


      fail("Expected e.getTperrno() == Connection.TPETIME");
    } catch (ConnectionException e) {
      assertTrue(e.getTperrno() == Connection.TPETIME);
    }

    TXINFO txinfo = new TXINFO();
    int inTx = TX.tx_info(txinfo);
    log.info("inTx=" + inTx);
    assertTrue(txinfo.transaction_state == TX.TX_ROLLBACK_ONLY);
    assertTrue(TX.tx_commit() == TX.TX_ROLLBACK);
  }
View Full Code Here


      fail("Expected e.getTperrno() == TPEOTYPE");
    } catch (ConnectionException e) {
      assertTrue(e.getTperrno() == Connection.TPEOTYPE);
    }

    TXINFO txinfo = new TXINFO();
    int inTx = TX.tx_info(txinfo);
    log.info("inTx=" + inTx);
    assertTrue(txinfo.transaction_state == TX.TX_ROLLBACK_ONLY);
    assertTrue(TX.tx_commit() == TX.TX_ROLLBACK);
  }
View Full Code Here

      assertTrue(e.getTperrno() == Connection.TPESVCFAIL);
    } catch (ConnectionException e) {
      fail("Expected e.getTperrno() == TPESVCFAIL");
    }

    TXINFO txinfo = new TXINFO();
    int inTx = TX.tx_info(txinfo);
    log.info("inTx=" + inTx);
    assertTrue(txinfo.transaction_state == TX.TX_ROLLBACK_ONLY);
    assertTrue(TX.tx_commit() == TX.TX_ROLLBACK);
  }
View Full Code Here

    Session cd = connection.tpconnect(
        RunServer.getServiceNameTestRollbackOnly2(), sendbuf,
        Connection.TPSENDONLY);
    cd.tpdiscon();

    TXINFO txinfo = new TXINFO();
    int inTx = TX.tx_info(txinfo);
    log.info("inTx=" + inTx);
    assertTrue(txinfo.transaction_state == TX.TX_ROLLBACK_ONLY);
    assertTrue(TX.tx_commit() == TX.TX_ROLLBACK);
  }
View Full Code Here

          "test_tprecv_TPEV_SVCFAIL_service") == 0);
    } catch (ConnectionException e) {
      fail("Expected e.getEvent() == Connection.TPEV_SVCFAIL");
    }

    TXINFO txinfo = new TXINFO();
    int inTx = TX.tx_info(txinfo);
    log.info("inTx=" + inTx);
    assertTrue(txinfo.transaction_state == TX.TX_ROLLBACK_ONLY);
    assertTrue(TX.tx_commit() == TX.TX_ROLLBACK);
  }
View Full Code Here

      fail("Expected e.getTperrno() == Connection.TPESVCERR");
    } catch (ConnectionException e) {
      assertTrue(e.getTperrno() == Connection.TPESVCERR);
    }

    TXINFO txinfo = new TXINFO();
    int inTx = TX.tx_info(txinfo);
    log.info("inTx=" + inTx);
    assertTrue(txinfo.transaction_state == TX.TX_ROLLBACK_ONLY);
    assertTrue(TX.tx_commit() == TX.TX_ROLLBACK);
  }
View Full Code Here

      .getLogger(RollbackOnlyTprecvTPEVDISCONIMMService.class);

  public Response tpservice(TPSVCINFO svcinfo) throws ConnectionException {
    log.info("test_tprecv_TPEV_DISCONIMM_service");
    Buffer status = svcinfo.getSession().tprecv(0);
    TXINFO txinfo = new TXINFO();
    int inTx = TX.tx_info(txinfo);
    boolean rbkOnly = (txinfo.transaction_state == TX.TX_ROLLBACK_ONLY);
    log.info("status=%d, inTx=%d, rbkOnly=%d" + status + " " + inTx + " "
        + rbkOnly);
    return null;
View Full Code Here

TOP

Related Classes of org.jboss.narayana.blacktie.jatmibroker.tx.TXINFO

Copyright © 2018 www.massapicom. 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.