Uploaded image for project: 'Spring Data GemFire'
  1. Spring Data GemFire
  2. SGF-36

PoolFactoryBean can be instantiated before cache if namespace used

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0
    • 1.0.1
    • 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

          Activity

            People

              costin Costin Leau
              grussell Gary Russell
              John Blum John Blum
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: