HHH-13118 Use the provided class loader even when using the default URI
This commit is contained in:
parent
25554375f2
commit
73345d5263
|
@ -206,10 +206,10 @@ public class JCacheRegionFactory extends RegionFactoryTemplate {
|
|||
final CacheManager cacheManager;
|
||||
final URI cacheManagerUri = getUri( settings, properties );
|
||||
if ( cacheManagerUri != null ) {
|
||||
cacheManager = cachingProvider.getCacheManager( cacheManagerUri, getClassLoader( cachingProvider ));
|
||||
cacheManager = cachingProvider.getCacheManager( cacheManagerUri, getClassLoader( cachingProvider ) );
|
||||
}
|
||||
else {
|
||||
cacheManager = cachingProvider.getCacheManager();
|
||||
cacheManager = cachingProvider.getCacheManager( cachingProvider.getDefaultURI(), getClassLoader( cachingProvider ) );
|
||||
}
|
||||
return cacheManager;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue