RMI is not a recommended technology to use, because it does not work in a highly scaled or ELB (elastic load-balanced) setup. If you still want to synchronize caches using RMI, install and configure the Cache Channel Service, which sends RMI messages between cache, on any machine you like. The Cache Channel Service runs as a standalone process or as a Windows service and does not require additional software.
Procedure
- Install and start the Cache Channel Service on a machine.
- In all SDL Tridion Sites Web applications, Java processes and Windows services where caching is enabled, open the Storage Layer configuration file cd_storage_conf.xml in a plain-text or XML editor.
- Inside the
ObjectCache, insert a RemoteSynchronization element as the last subelement.
- Inside this new
RemoteSynchronization element, create a new Connector subelement and set the attributes as follows:
| Attribute | Description |
|---|
Class | Set to com.tridion.cache.RMICacheChannelConnector. |
Host | Set to the host of your Cache Channel Service. If omitted, defaults to the value localhost. |
Port | Set to the port of your Cache Channel Service. If omitted, defaults to the value 1099. |
- Save and close cd_storage_conf.xml.
- Restart the Web application, Java process or Windows service.