The new release of Coherence (12.2.1) implements several new features that improve and enrich the already existent functionality. One of these new features provides the administrators an interface to generate, persist and archive snapshots of the cache’s content. These snapshots can be recovered at any point in time, giving users the possibility to have several backups of the cache in order to avoid a total loss of the data.
Coherence supports two kinds of persistence: on-demand persistence mode and active persistence mode. On-demand persistence mode is done manually by using the MBeans provided by Coherence. In the active persistence mode, caches are persisted automatically when the content changes and are automatically recovered on cluster/service startup. In this blog entry I am going to describe how to configure an on-demand persistence cache in Weblogic 12.2.1 and how to generate the snapshots using the Coherence JVisualVM plugin.
Configuring the cache
I am going to start with a simple Weblogic domain with two managed server in a cluster, like the one showed in the following picture:
Once the domain is ready, the Coherence cluster can be configured along with the information about the snapshots that are going to be persisted and recovered. The snapshot configuration consists of two main parts: the first one defines the path where the snapshot is going to be stored and it is configured along with the cluster in the operational configuration file (coherence-operational-config.xml). The second part is done in the cache configuration file (Coherence-cache-config) and it tells the cache which persistence configuration it should use. Unfortunately, the path definition cannot be done in the Weblogic administration console. Therefore, we will have to use a coherence-operational-config file to define the Coherence cluster: Read the complete article here.
For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.