开发者

EhCache distrubuted peers config (through RMI)

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜