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

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

Introduction

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

Prototype

public static boolean isActive(TransactionManager transactionManager) 

Source Link

Document

Does the status code obtained from the given TransactionManager indicate an active transaction?

Usage

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

License:LGPL

@Override
public boolean canRegisterSynchronization() {
    return JtaStatusHelper.isActive(retrieveTransactionManager());
}

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

License:LGPL

@Override
public boolean canRegisterSynchronization() {
    return JtaStatusHelper.isActive(XaTransactionManagerImpl.getInstance());
}