Example usage for javax.resource.cci LocalTransaction commit

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

Introduction

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

Prototype

public void commit() throws ResourceException;

Source Link

Document

Commits the current local transaction and release all locks held by the underlying EIS instance.

Usage

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

/**
 * @param <code>Connection</code> mainframe connection 
 * Commit the CICS transaction./*from  w  w w . j  ava 2s  .  c  o m*/
 * */
public void commit(Connection con) throws Exception {

    if (con == null)
        return;
    LocalTransaction tran = con.getLocalTransaction();
    if (tran != null) {
        tran.commit(); // commits a transaction
        if (logger.isInfoEnabled()) {
            logger.info("CICS-Transaction [" + this.transactionID + "] commit.");
        }
    }
}