RMI Cache - TcmExtensions/TcmCDService GitHub Wiki

Introduction

The remote method interface cache leverages the default Tridion cache channel service architecture in order to receive cache events from other Tridion java virtual machines.

Details

RMICache consists of a wrapper class written around the existing com.tridion.cache.RMICacheChannelConnector class.

The cache channel connector uses Java RMI to receive information from the Tridion Cache Channel service.

Tridion will supply a com.tridion.cache.CacheEvent class which contains the information about the item to be invalidated from the cache.

A supplied wrapper class leverages the existing JuggerNET layer already present to expose the required com.tridion.cache.* Java classes from Java to .NET over JNI.

Callbacks are provided by the native JuggerNET layer (xmogrt.dll) calling into a custom Java wrapper class, linked as bytecode in CacheChannelEventListenerCallback.class.

The callbacks are then registered into a class implementing the ICacheChannelEventListener interface and passed back to the RMICache class as events.

This allows .NET to asynchronously receive events from the Tridion Java virtual machine and process them accordingly.