SGF-414 - Resolve incompatibility between the DistributedSystem created by the PoolFactoryBean and the DistributedSystem resolved by the ClientCacheFactoryBean when SSL is configured.
Added additional test cases for the CacheFactoryBean and ClientCacheFactoryBean based on SSL support. 1.7 SDG XSD cleanup.
This commit is contained in:
@@ -494,7 +494,7 @@ public class CacheFactoryBean implements BeanClassLoaderAware, BeanFactoryAware,
|
||||
@Override
|
||||
public void destroy() throws Exception {
|
||||
if (close) {
|
||||
Cache localCache = (Cache) fetchCache();
|
||||
Cache localCache = fetchCache();
|
||||
|
||||
if (localCache != null && !localCache.isClosed()) {
|
||||
localCache.close();
|
||||
@@ -510,7 +510,7 @@ public class CacheFactoryBean implements BeanClassLoaderAware, BeanFactoryAware,
|
||||
}
|
||||
|
||||
@Override
|
||||
public DataAccessException translateExceptionIfPossible(final RuntimeException e) {
|
||||
public DataAccessException translateExceptionIfPossible(RuntimeException e) {
|
||||
if (e instanceof GemFireException) {
|
||||
return GemfireCacheUtils.convertGemfireAccessException((GemFireException) e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user