开发者

EhCache distrubuted peers config (through RMI)

开发者 https://www.devze.com 2023-02-01 19:31 出处:网络
Assume I\'ve 2 nodes in cluser A, B confugured through manual discovery. May I use same configuration file for both nodes, or I should exclude node A f开发者_运维问答rom node A config (rmiUrls list),

Assume I've 2 nodes in cluser A, B confugured through manual discovery.

May I use same configuration file for both nodes, or I should exclude node A f开发者_运维问答rom node A config (rmiUrls list), and node B from node B config (rmiUrls list)?

<!-- For RMI replication (Setting the peer provider factory) -->
<cacheManagerPeerProviderFactory
    class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
    properties="peerDiscovery=manual, rmiUrls=//A_IP:40000/MyCache|//B_IP:40000/MyCache"/>


cacheManagerPeerProviderFactory should be configured with other node and other nodes's port, whereas cacheManagerPeerListenerFactory should be configured with local node and local port.

0

精彩评论

暂无评论...
验证码 换一张
取 消