Ehcache Replication and External Publishers
Ehcache replicates using JMS as follows:

Each cache node subscribes to a predefined topic, configured as the <topicBindingName> in ehcache.xml.

Each replicated cache publishes cache Elements to that topic. Replication is configured per cache.
To set up replicated caching based on JMS you need to configure a JMSCacheManagerPeerProviderFactory which is done globally for a CacheManager.
For each cache that wishing to replicate, you add a JGroupsCacheReplicatorFactory element to the cache element.