我使用gemfire作为metadatastore
<gfe:cache/>
<gfe:replicated-region id="region" />
<bean id="metadataStore" class="org.springframework.integration.metadata.PropertiesPersistingMetadataStore"/>
<bean id="compositeFilter" class="org.springframework.integration.file.filters.CompositeFileListFilter">
<constructor-arg>
<list>
<bean id="filterAllFiles" class="id.lsa.scb.spring.integration.filter.EntireFileFilter">
<property name="adrUtil" ref="pojoUtil"/>
</bean>
<bean id="acceptOnceFilter"
class="org.springframework.integration.file.filters.FileSystemPersistentAcceptOnceFileListFilter">
<constructor-arg name="store" ref="metadataStore"/>
<constructor-arg name="prefix" value="test-"/>
<property name="flushOnUpdate" value="true"/>
</bean>
</list>
</constructor-arg>
</bean>
但得到了错误:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gemfireCache': FactoryBean threw exception on object creation; nested exception is com.gemstone.gemfire.SystemConnectException: Unable to find a free port in the membership-port-range
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1590)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:254)
at org
答案 0 :(得分:0)
这对Gemfire来说是个问题。不知道在哪里可以找到他们的论坛,邮件列表或任何其他支持。
消息
无法在membership -port-range
中找到空闲端口
适用于此membership-port-range
媒体资源,您可以在gemfire.properties
中配置:http://gemfire702.docs.pivotal.io/7.0.2/userguide/reference/topics/gemfire_properties.html#gemfire_properties
我的配置中没有看到您确实使用GemfireMetadataStore
。
我认为你可以手动阅读这些元数据,甚至可以使用查询。 GemfireMetadataStore
完全基于Region<String, String>
注入:http://docs.spring.io/spring-integration/reference/html/gemfire.html#gemfire-metadata-store