manik, thanks very much. Inval-async mode worked now.
I think it is not possible to make only one server response read request, right? if one
server failed to response, the other server could response at once. but at most case, both
the server loader will response read request.
another question, how to make the server readonly? the server will accept changes from
client side. it is dangerous for my case.
===================================
client:
<?xml version="1.0" encoding="UTF-8"?>
| <jbosscache xmlns="urn:jboss:jbosscache-core:config:3.0">
|
| <eviction wakeUpInterval="5000">
| <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm"
| eventQueueSize="200000">
| <property name="maxNodes" value="5000" />
| <property name="timeToLive" value="1000000" />
| </default>
| </eviction>
|
| <clustering mode="i" clusterName="EmsGlobalCluster">
| <async />
| <jgroupsConfig configFile="udp.xml" />
| </clustering>
|
| <loaders passivation="false" shared="false">
| <loader class="org.jboss.cache.loader.ClusteredCacheLoader">
| <properties>
| timeout = 3000
| </properties>
| </loader>
| </loaders>
|
| </jbosscache>
server:
<?xml version="1.0" encoding="UTF-8"?>
| <jbosscache
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xmlns="urn:jboss:jbosscache-core:config:3.1">
|
| <transaction
|
transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"
/>
|
| <eviction wakeUpInterval="5000">
| <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm"
| eventQueueSize="200000">
| <property name="maxNodes" value="5000" />
| <property name="timeToLive" value="1000000" />
| </default>
| </eviction>
|
| <clustering mode="i" clusterName="EmsGlobalCluster">
| <async />
| <jgroupsConfig configFile="udp.xml" />
| </clustering>
|
| <loaders passivation="false" shared="true">
| <loader class="org.steeven.MyCacheLoader"
| async="false" fetchPersistentState="false"
ignoreModifications="true"
| purgeOnStartup="false">
| <properties />
| </loader>
| </loaders>
| </jbosscache>
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250794#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...