diff --git a/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/functional/util/DualNodeTransactionManagerLookup.java b/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/functional/util/DualNodeTransactionManagerLookup.java index fc48154b97..040bd8f691 100644 --- a/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/functional/util/DualNodeTransactionManagerLookup.java +++ b/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/functional/util/DualNodeTransactionManagerLookup.java @@ -25,6 +25,7 @@ package org.hibernate.test.cache.jbc2.functional.util; import java.util.Properties; import javax.transaction.TransactionManager; +import javax.transaction.Transaction; import org.hibernate.transaction.TransactionManagerLookup; import org.hibernate.HibernateException; @@ -48,4 +49,8 @@ public class DualNodeTransactionManagerLookup implements TransactionManagerLooku public String getUserTransactionName() { throw new UnsupportedOperationException( "jndi currently not implemented for these tests" ); } + + public Object getTransactionIdentifier(Transaction transaction) { + return transaction; + } } diff --git a/cache-jbosscache2/src/test/java/org/hibernate/test/tm/jbc2/BatchModeTransactionManagerLookup.java b/cache-jbosscache2/src/test/java/org/hibernate/test/tm/jbc2/BatchModeTransactionManagerLookup.java index 19089e4227..20dec22f36 100755 --- a/cache-jbosscache2/src/test/java/org/hibernate/test/tm/jbc2/BatchModeTransactionManagerLookup.java +++ b/cache-jbosscache2/src/test/java/org/hibernate/test/tm/jbc2/BatchModeTransactionManagerLookup.java @@ -26,6 +26,7 @@ package org.hibernate.test.tm.jbc2; import java.util.Properties; import javax.transaction.TransactionManager; +import javax.transaction.Transaction; import org.hibernate.HibernateException; import org.hibernate.transaction.TransactionManagerLookup; @@ -53,4 +54,8 @@ public class BatchModeTransactionManagerLookup throw new UnsupportedOperationException(); } + public Object getTransactionIdentifier(Transaction transaction) { + return transaction; + } + }