[HHH-3340] Don't fail if cache TM != discovered TM
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@14757 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
eca1c43de6
commit
b3ae358a6b
|
@ -216,8 +216,8 @@ public class SharedCacheInstanceManager implements CacheInstanceManager {
|
|||
if (!safeEquals(tm, cacheTm)) {
|
||||
if (cache.getCacheStatus() != CacheStatus.INSTANTIATED
|
||||
&& cache.getCacheStatus() != CacheStatus.DESTROYED) {
|
||||
throw new CacheException("JBoss Cache is already started " + "with a transaction manager ("
|
||||
+ cacheTm + ") that doesn't match our own (" + tm + ")");
|
||||
log.debug("JBoss Cache is already started with a transaction manager ("
|
||||
+ cacheTm + ") that is not equal to our own (" + tm + ")");
|
||||
} else {
|
||||
// Configure the cache to use our TM
|
||||
cacheConfig.getRuntimeConfig().setTransactionManager(tm);
|
||||
|
|
Loading…
Reference in New Issue