Example usage for javax.resource.cci LocalTransaction rollback

List of usage examples for javax.resource.cci LocalTransaction rollback

Introduction

In this page you can find the example usage for javax.resource.cci LocalTransaction rollback.

Prototype

public void rollback() throws ResourceException;

Source Link

Document

Rollbacks the current resource manager local transaction.

Usage

From source file:org.mule.transport.cics.CtgAdapter.java

/**
 * @param <code>Connection</code> mainframe connection 
 * Rollback the CICS transaction.//from  w  w  w .ja  v a 2s . c o m
 * */
public void rollback(Connection con) throws Exception {

    if (con == null)
        return;
    LocalTransaction tran = con.getLocalTransaction();
    if (tran != null) {
        tran.rollback();
        logger.info("CICS-Transaction [" + this.transactionID + "] has been rolledback.");
    }
}