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;
}