Typically, one cacheManagerPeerProviderFactory instance is used to replicate (or synchronize) the number of caches in a cluster. In this case, "channelName=CHANNEL1:"more like a simple name. I do not think ehCache supports multiple channels.
If you need to have a specific replication channel, you can try one of the following
- EhCache , ehcache.xml, .
- , ehcache.xml , ( ) .
-, .
EhcacheManagers Spring :
<ehcache:annotation-driven cache-manager="ehCacheManager1" />
<bean id="ehCacheManager1" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
<property name="configLocation" value="classpath:ehcache-1.xml" />
</bean>
<bean id="ehCacheManager2" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
<property name="configLocation" value="classpath:ehcache-2.xml" />
</bean>