[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:
Brian Stansberry 2008-06-09 22:36:38 +00:00
parent eca1c43de6
commit b3ae358a6b
1 changed files with 2 additions and 2 deletions

View File

@ -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);