diff --git a/src/main/java/org/springframework/data/gemfire/CacheFactoryBean.java b/src/main/java/org/springframework/data/gemfire/CacheFactoryBean.java index 3f90119a..8299cd02 100644 --- a/src/main/java/org/springframework/data/gemfire/CacheFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/CacheFactoryBean.java @@ -89,7 +89,7 @@ public class CacheFactoryBean implements BeanClassLoaderAware, BeanFactoryAware, protected boolean close = true; protected boolean lazyInitialize = true; - protected boolean useBeanFactoryLocator = true; + protected boolean useBeanFactoryLocator = false; protected final Log log = LogFactory.getLog(getClass()); diff --git a/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.8.xsd b/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.8.xsd index 6538f1f9..fec8a06d 100644 --- a/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.8.xsd +++ b/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.8.xsd @@ -141,7 +141,7 @@ For cases in which there are no declared dependencies on the cache, set this att ]]> - + + properties-ref="gemfireProperties" lazy-init="false" use-bean-factory-locator="true"/> diff --git a/src/test/resources/org/springframework/data/gemfire/cache-with-declarable-ctx.xml b/src/test/resources/org/springframework/data/gemfire/cache-with-declarable-ctx.xml index 09ac23a0..13c605a0 100644 --- a/src/test/resources/org/springframework/data/gemfire/cache-with-declarable-ctx.xml +++ b/src/test/resources/org/springframework/data/gemfire/cache-with-declarable-ctx.xml @@ -16,7 +16,8 @@ warning - +