All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.drools.persistence.TransactionSynchronizationRegistryHelper Maven / Gradle / Ivy

There is a newer version: 10.0.0
Show newest version
package org.drools.persistence;

import javax.transaction.TransactionSynchronizationRegistry;

import org.drools.persistence.jta.JtaTransactionSynchronizationAdapter;

public class TransactionSynchronizationRegistryHelper {
    public static void registerTransactionSynchronization(final Object tsro, final TransactionSynchronization ts) {
        TransactionSynchronizationRegistry tsr = ( TransactionSynchronizationRegistry ) tsro;
        tsr.registerInterposedSynchronization( new JtaTransactionSynchronizationAdapter( ts ) );
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy