Example usage for org.hibernate.engine.transaction.jta.platform.internal NoJtaPlatform INSTANCE

List of usage examples for org.hibernate.engine.transaction.jta.platform.internal NoJtaPlatform INSTANCE

Introduction

In this page you can find the example usage for org.hibernate.engine.transaction.jta.platform.internal NoJtaPlatform INSTANCE.

Prototype

NoJtaPlatform INSTANCE

To view the source code for org.hibernate.engine.transaction.jta.platform.internal NoJtaPlatform INSTANCE.

Click Source Link

Usage

From source file:com.amalto.core.storage.JTAProvider.java

License:Open Source License

@Override
public JtaPlatform getProvidedJtaPlatform() {
    /*//from w  w w. jav  a2 s.c o  m
     * MDM does not provide/use any TM, however endorsed libraries (for Bonita) may wrongly indicate to Hibernate
     * that a TM is available. Code below ensures JTA is always disabled.
     */
    if (LOGGER.isDebugEnabled()) {
        LOGGER.debug("Disabling JTA support.");
    }
    return NoJtaPlatform.INSTANCE;
}