[jboss-user] [JBossCache] - Simple question: Clustering with FileCacheLoader
cypherhat
do-not-reply at jboss.com
Wed Jan 17 10:25:30 EST 2007
I am using JBossCache in a WebSphere environment. I had been using a FileCacheLoader in LOCAL mode, although I hadn't set the CacheMode explicitly. So far, so good.
Now, I want to enable clustering. I still want to use a FileExtendedCacheLoader; but, I want to replicate data across two WebSphere instances (in the same WS cluster.) I searched the documentation for the appropriate configuration, and, I am unclear how much I have to configure.
I would expect that I'd have to add some configuration that allows each TreeCache to discover the other nodes in it's cluster. Thus, I see the ClusterConfig stanza in some example configurations.
Is it enough just to set the cache mode to REPL_SYNC (I want synchronous replication)?
Actually, a better way to ask this question is:
Here is my (very minimal) configuration. What do I have to add to enable clustering?
<?xml version="1.0" encoding="UTF-8"?>
| <config>
| <passivation>false</passivation>
| <preload>/nothing</preload>
| <cacheloader>
| <class>org.jboss.cache.loader.FileExtendedCacheLoader</class>
| <properties>location=/trp/GDU/cache</properties>
| <async>false</async>
| <shared>true</shared>
| <fetchPersistentState>false</fetchPersistentState>
| <purgeOnStartup>false</purgeOnStartup>
| </cacheloader>
| </config>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002856#4002856
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002856
More information about the jboss-user
mailing list