Coherence Persistence in WebLogic by Nicolas Fonnegra


clip_image002The 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.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.