JBoss.org Community Documentation
JBoss Cache can use a
CacheLoader
to back up the in-memory cache to a backend datastore.
If JBoss Cache is configured with a cache loader, then the following features are provided:
Whenever a cache element is accessed, and that element is not in the cache (e.g. due to eviction or due to server restart), then the cache loader transparently loads the element into the cache if found in the backend store.
Whenever an element is modified, added or removed, then that
modification is persisted in the backend store via the cache loader. If
transactions are used, all modifications created within a transaction
are persisted. To this end, the
CacheLoader
takes part in the two
phase commit protocol run by the transaction manager, although it does not do so explicitly.
[6] Of course they can enable state transfer, if they want to have a warm or hot cache after startup.