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:
John Blum
2015-07-10 16:56:29 -07:00
parent 4f2eb22163
commit 130cc4ca4c
4 changed files with 407 additions and 134 deletions

View File

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