Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0.0
-
None
Description
The <gfe:pool/> element has no reference to the gemfire cache. This means it can be instantiated before the cache, causing an Exception "... Caused by: java.lang.IllegalStateException: Distributed System must be created before creating pool".
Work-around is to define using <bean/> syntax and adding a depends-on attribute...
<bean id="pool" class="org.springframework.data.gemfire.client.PoolFactoryBean" depends-on="gemfire-cache"> <property name="locators"> <list> <bean class="org.springframework.data.gemfire.client.PoolConnection"> <property name="host" value="${gemfire.locator.host}"/> <property name="port" value="${gemfire.locator.port}"/> </bean> </list> </property> </bean>
Attachments
Issue Links
- relates to
-
SGFNET-23 Pool Factory Object Can be Instantiated Before Cache if Namespace Used
-
- Resolved
-