Search in sources :

Example 1 with JCoordinator

use of com.sun.jts.codegen.otsidl.JCoordinator in project Payara by payara.

the class FailureInducer method getGlobalTID.

private static GlobalTID getGlobalTID() {
    GlobalTID gtid = null;
    Coordinator coord = Utility.getCoordinator(Utility.getControl());
    JCoordinator jcoord = JCoordinatorHelper.narrow(coord);
    if (jcoord != null) {
        gtid = new GlobalTID(jcoord.getGlobalTID());
    } else {
        ControlImpl control = CurrentTransaction.getCurrent();
        if (control != null) {
            gtid = control.getGlobalTID();
        }
    }
    return gtid;
}
Also used : JCoordinator(com.sun.jts.codegen.otsidl.JCoordinator) ControlImpl(com.sun.jts.CosTransactions.ControlImpl) JCoordinator(com.sun.jts.codegen.otsidl.JCoordinator) Coordinator(org.omg.CosTransactions.Coordinator) GlobalTID(com.sun.jts.CosTransactions.GlobalTID)

Aggregations

ControlImpl (com.sun.jts.CosTransactions.ControlImpl)1 GlobalTID (com.sun.jts.CosTransactions.GlobalTID)1 JCoordinator (com.sun.jts.codegen.otsidl.JCoordinator)1 Coordinator (org.omg.CosTransactions.Coordinator)1