ehcache的三种最为常用集群方式,分别是 RMI、JGroups 以及 EhCache Server 。
今天自己配制了一下rmi方式。
ehcache集群配制文件
<?xml version="1.0" encoding="UTF-8"?>
<ehcache name="es">
<diskStore path="java.io.tmpdir"/>
<!--
配置