| Author |
Message |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 06/13/2012 23:05:15
|
akkhi123
neo
Joined: 05/30/2012 00:20:48
Messages: 5
Offline
|
I have two server xx.xx.xx.10 & xx.xx.xx.11 in cluster enviornment.
I have done configuration to replicate the cache through RMI.
But when I made changes in first cache that changes is not reflected to other cache. Means replication is not working at all.
Can someone help below is my configuration.
//ehcache.xml Configuration for Server xx.xx.xx.10
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="ehcache.xsd" updateCheck="true"
monitoring="autodetect" dynamicConfig="true">
<cacheManagerPeerProviderFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
properties="peerDiscovery=manual,rmiUrls=//xx.xx.xx.11:40001/MF_CACHE" />
<cacheManagerPeerListenerFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
properties="port=40001,socketTimeoutMillis=2000" />
<cache name="MF_CACHE"
maxElementsInMemory="100000"
eternal="true"
overflowToDisk="true">
<cacheEventListenerFactory
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true " />
</cache>
</ehcache>
//ehcache.xml Configuration for Server xx.xx.xx.11
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="ehcache.xsd" updateCheck="true"
monitoring="autodetect" dynamicConfig="true">
<cacheManagerPeerProviderFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
properties="peerDiscovery=manual,rmiUrls=//xx.xx.xx.10:40001/MF_CACHE" />
<cacheManagerPeerListenerFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
properties="port=40001,socketTimeoutMillis=2000" />
<cache name="MF_CACHE"
maxElementsInMemory="100000"
eternal="true"
overflowToDisk="true">
<cacheEventListenerFactory
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true " />
</cache>
</ehcache>
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 06/19/2012 02:41:18
|
akkhi123
neo
Joined: 05/30/2012 00:20:48
Messages: 5
Offline
|
can somebody help me on above issue.
Wats wrong I am doing. Is there any configuration required on server end also?
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 06/26/2012 01:23:00
|
gyan10
ophanim
Joined: 06/28/2011 23:15:25
Messages: 697
Offline
|
Your configuration seems ok to me. Are you running your sample on Tomcat on windows?if yes, there is bug
Please read below doc carefully and also try to run run sample given in the doc.
http://ehcache.org/documentation/user-guide/rmi-replicated-caching
Hope this will help.
Cheers!!!
|
Gyan Awasthi
Terracotta -A Software AG company |
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 06/26/2012 01:59:45
|
akkhi123
neo
Joined: 05/30/2012 00:20:48
Messages: 5
Offline
|
Thank you so much Gyan. But issue is some thing else.
It is working fine on 1 server but not working with other server. Means if change cache of server xx.xx.xx.10, it is replicated on xx.xx.xx.11 but if change cache of server xx.xx.xx.11 that is not replicated on xx.xx.xx.10. It seems some setting is required on server end.
Can u tell me how can I check my server configuration that it is correct or not.
|
|
|
 |
|
|