Example usage for org.hibernate.engine.transaction.internal.jta JtaStatusHelper getStatus

List of usage examples for org.hibernate.engine.transaction.internal.jta JtaStatusHelper getStatus

Introduction

In this page you can find the example usage for org.hibernate.engine.transaction.internal.jta JtaStatusHelper getStatus.

Prototype

public static int getStatus(TransactionManager transactionManager) 

Source Link

Document

Extract the status code from the current javax.transaction.Transaction associated with the given TransactionManager

Usage

From source file:org.infinispan.test.hibernate.cache.commons.functional.cluster.DualNodeJtaPlatformImpl.java

License:LGPL

@Override
public int getCurrentStatus() throws SystemException {
    return JtaStatusHelper.getStatus(retrieveTransactionManager());
}

From source file:org.infinispan.test.hibernate.cache.commons.tm.JtaPlatformImpl.java

License:LGPL

@Override
public int getCurrentStatus() throws SystemException {
    return JtaStatusHelper.getStatus(XaTransactionManagerImpl.getInstance());
}