org.drools.persistence.TransactionSynchronizationRegistryHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of drools-persistence-jpa Show documentation
Show all versions of drools-persistence-jpa Show documentation
JPA implementation for Drools
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