Turn off beanFactoryReference for Gemfire Caches

Looks like there is some race condition around static fields in the `GemfireBeanFactoryLocator`

Also add `@DirtiesContext` to the `GemfireInboundChannelAdapterTests`

**Cherry-pick to 4.3.x and master**

(cherry picked from commit 90136d7)
This commit is contained in:
Artem Bilan
2016-12-01 11:12:08 -05:00
parent 8198ff1861
commit fa0ba9b84e
3 changed files with 3 additions and 3 deletions

View File

@@ -10,7 +10,7 @@
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<gfe:cache id="gemfire-cache-2"/>
<gfe:cache id="gemfire-cache-2" use-bean-factory-locator="false"/>
<gfe:local-region id="region1" cache-ref="gemfire-cache-2"/>

View File

@@ -9,7 +9,7 @@
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<gfe:cache />
<gfe:cache use-bean-factory-locator="false"/>
<gfe:replicated-region id="region1"/>

View File

@@ -7,7 +7,7 @@
http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire.xsd
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd">
<gfe:cache />
<gfe:cache use-bean-factory-locator="false"/>
<bean id="lockRegistry" class="org.springframework.integration.gemfire.util.GemfireLockRegistry">
<constructor-arg ref="gemfireCache"/>