[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Messages posted by: akkhi123  XML
Profile for akkhi123 -> Messages posted by akkhi123 [5]
Author Message
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.
can somebody help me on above issue.
Wats wrong I am doing. Is there any configuration required on server end also?
Thankyou 'gyan10' and 'Jaza' for providing me the helpful information.
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>
I am quite new for Ehcache.
I want to cache large static data(which need to be updated every day) and that data is used from different application server.
My application is deployed on 5 app server in cluster enviornment. I want to use that cached data from all 5 app server.
I made one master app server which load cache and rest 4 app server is slave(only read that cache) .
For this I have deployed the ehcache.war on one server and cached my data on that ehcache through Http Restful request .This ehcache is updated every day(using schedular for this).
Is this approach is fine or I need to use ehcache standalone server for this pupose or teracotta serve I am confused.
Please sugest.
 
Profile for akkhi123 -> Messages posted by akkhi123 [5]
Go to:   
Powered by JForum 2.1.7 © JForum Team