Search in sources :

Example 1 with TXINFO

use of org.jboss.narayana.blacktie.jatmibroker.tx.TXINFO in project narayana by jbosstm.

the class RollbackOnlyTprecvTPEVDISCONIMMService method tpservice.

public Response tpservice(TPSVCINFO svcinfo) throws ConnectionException, ConfigurationException {
    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;
}
Also used : Buffer(org.jboss.narayana.blacktie.jatmibroker.xatmi.Buffer) TXINFO(org.jboss.narayana.blacktie.jatmibroker.tx.TXINFO)

Aggregations

TXINFO (org.jboss.narayana.blacktie.jatmibroker.tx.TXINFO)1 Buffer (org.jboss.narayana.blacktie.jatmibroker.xatmi.Buffer)1