SGF-439 - Add 'durable-client-id' and 'durable-client-timeout' attributes to the <gfe:client-cache> namespace element for convenience.
(cherry picked from commit e74768f006d59210ddd3d4fe5294a60ca505674f) Signed-off-by: John Blum <jblum@pivotal.io>
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
|
||||
">
|
||||
|
||||
<util:properties id="client.properties">
|
||||
<util:properties id="clientProperties">
|
||||
<prop key="client.server.host">localhost</prop>
|
||||
<prop key="client.server.port">31517</prop>
|
||||
<prop key="gemfire.security.ssl.enabled">true</prop>
|
||||
@@ -23,7 +23,7 @@
|
||||
<prop key="gemfire.security.ssl.keystore.type">jks</prop>
|
||||
</util:properties>
|
||||
|
||||
<context:property-placeholder properties-ref="client.properties" system-properties-mode="FALLBACK"/>
|
||||
<context:property-placeholder properties-ref="clientProperties" system-properties-mode="FALLBACK"/>
|
||||
|
||||
<util:properties id="gemfireProperties">
|
||||
<prop key="cluster-ssl-enabled">${gemfire.security.ssl.enabled}</prop>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
">
|
||||
|
||||
<util:properties id="clientProperties">
|
||||
<prop key="gemfire.cache.client.durable-client-id">DurableClientCacheIntegrationTest</prop>
|
||||
<prop key="gemfire.cache.client.server.host">localhost</prop>
|
||||
<prop key="gemfire.cache.client.server.port">24842</prop>
|
||||
</util:properties>
|
||||
@@ -21,7 +22,7 @@
|
||||
<bean class="org.springframework.data.gemfire.client.DurableClientCacheIntegrationTest$ClientCacheBeanPostProcessor"/>
|
||||
|
||||
<util:properties id="gemfireProperties">
|
||||
<prop key="durable-client-id">DurableClientCacheIntegrationTestClientId</prop>
|
||||
<prop key="durable-client-id">TestDurableClientId</prop>
|
||||
<prop key="durable-client-timeout">300</prop>
|
||||
<prop key="log-level">warning</prop>
|
||||
<prop key="mcast-port">0</prop>
|
||||
@@ -32,8 +33,10 @@
|
||||
<gfe:server host="${gemfire.cache.client.server.host}" port="${gemfire.cache.client.server.port}"/>
|
||||
</gfe:pool>
|
||||
|
||||
<gfe:client-cache properties-ref="gemfireProperties" keep-alive="true" pool-name="gemfireServerPool" ready-for-events="true"
|
||||
use-bean-factory-locator="false"/>
|
||||
<gfe:client-cache properties-ref="gemfireProperties" pool-name="gemfireServerPool" use-bean-factory-locator="false"
|
||||
durable-client-id="${gemfire.cache.client.durable-client-id}"
|
||||
durable-client-timeout="${gemfire.cache.client.durable-client-timeout:}"
|
||||
keep-alive="true" ready-for-events="true"/>
|
||||
|
||||
<gfe:client-region id="Example" pool-name="gemfireServerPool" shortcut="CACHING_PROXY">
|
||||
<gfe:cache-listener>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
<bean id="reflectionPdxSerializer" class="com.gemstone.gemfire.pdx.ReflectionBasedAutoSerializer"/>
|
||||
|
||||
<gfe:client-cache cache-xml-location="/path/to/bogus/cache.xml" properties-ref="gemfireProperties" lazy-init="true"
|
||||
durable-client-id="TestDurableClientId" durable-client-timeout="600"
|
||||
copy-on-read="true" critical-heap-percentage="0.85" eviction-heap-percentage="0.65"
|
||||
pdx-serializer-ref="reflectionPdxSerializer" pdx-ignore-unread-fields="true" pdx-persistent="false"
|
||||
pdx-read-serialized="true" keep-alive="true" pool-name="serverPool" ready-for-events="false"/>
|
||||
|
||||
Reference in New Issue
Block a user