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

Source Code of org.jboss.narayana.blacktie.jatmibroker.tx.services.RollbackOnlyTprecvTPEVDISCONIMMService

package org.jboss.narayana.blacktie.jatmibroker.tx.services;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.jboss.narayana.blacktie.jatmibroker.tx.TX;
import org.jboss.narayana.blacktie.jatmibroker.tx.TXINFO;
import org.jboss.narayana.blacktie.jatmibroker.xatmi.Buffer;
import org.jboss.narayana.blacktie.jatmibroker.xatmi.ConnectionException;
import org.jboss.narayana.blacktie.jatmibroker.xatmi.Response;
import org.jboss.narayana.blacktie.jatmibroker.xatmi.Service;
import org.jboss.narayana.blacktie.jatmibroker.xatmi.TPSVCINFO;

public class RollbackOnlyTprecvTPEVDISCONIMMService implements Service {
  private static final Logger log = LogManager
      .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;
  }
}
TOP

Related Classes of org.jboss.narayana.blacktie.jatmibroker.tx.services.RollbackOnlyTprecvTPEVDISCONIMMService

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.