Author: rareddy
Date: 2011-07-14 10:31:30 -0400 (Thu, 14 Jul 2011)
New Revision: 3313
Modified:
branches/7.4.x/build/kits/jboss-container/deploy/teiid/teiid-cache-manager-jboss-beans-rename-me.xml
branches/7.4.x/cache-jbosscache/src/main/java/org/teiid/cache/jboss/JBossCacheFactory.java
Log:
TEIID-1493: Replicate the cache contents when node joins the cluster
Modified:
branches/7.4.x/build/kits/jboss-container/deploy/teiid/teiid-cache-manager-jboss-beans-rename-me.xml
===================================================================
---
branches/7.4.x/build/kits/jboss-container/deploy/teiid/teiid-cache-manager-jboss-beans-rename-me.xml 2011-07-14
14:07:35 UTC (rev 3312)
+++
branches/7.4.x/build/kits/jboss-container/deploy/teiid/teiid-cache-manager-jboss-beans-rename-me.xml 2011-07-14
14:31:30 UTC (rev 3313)
@@ -85,7 +85,7 @@
<!-- Hibernate 2LC can replicate custom types, so we use
marshalling -->
<property
name="useRegionBasedMarshalling">true</property>
<!-- Must match the value of
"useRegionBasedMarshalling" -->
- <property
name="inactiveOnStartup">true</property>
+ <property
name="inactiveOnStartup">false</property>
<!-- Disable asynchronous RPC marshalling/sending -->
<property
name="serializationExecutorPoolSize">0</property>
Modified:
branches/7.4.x/cache-jbosscache/src/main/java/org/teiid/cache/jboss/JBossCacheFactory.java
===================================================================
---
branches/7.4.x/cache-jbosscache/src/main/java/org/teiid/cache/jboss/JBossCacheFactory.java 2011-07-14
14:07:35 UTC (rev 3312)
+++
branches/7.4.x/cache-jbosscache/src/main/java/org/teiid/cache/jboss/JBossCacheFactory.java 2011-07-14
14:31:30 UTC (rev 3313)
@@ -59,6 +59,7 @@
if (!this.cacheStore.getCacheStatus().allowInvocations()) {
this.cacheStore.start();
+ this.cacheStore.getRegion(this.cacheStore.getRoot().getFqn(), true).activate();
}
Node cacheRoot =
this.cacheStore.getRoot().addChild(Fqn.fromString("Teiid")); //$NON-NLS-1$
@@ -67,6 +68,7 @@
Region cacheRegion = this.cacheStore.getRegion(node.getFqn(), true);
cacheRegion.setEvictionRegionConfig(buildEvictionConfig(node.getFqn(), config));
+ cacheRegion.activate();
JBossCache jc = null;
if (config != null && config.getPolicy().equals(Policy.EXPIRATION)) {
Show replies by date