Tuesday, July 12, 2011

Coherence Web: Starting seperate Coherence Clusters for multiple applications deployed in the same Weblogic Server

The procedure differs between Weblogic Version 10.3.2 and later. In 10.3.3 and later, the process is well documented and straight-forward due to active-cache integration. But, I could find documentation on Weblogic 10.3.2 and previous versions but the challenge is how run multiple Coherence clusters with different configuration or in Coherence terms, how to put the below mentioned in the Application (EAR/WAR) files:

-session-cache-config.xml
-tangosol-coherence-override.xml

Both the above configuration files should hold the configuration for the cluster and cache topology to be used by this Application. In order to make it possible, create a jar file and include it in the EAR/META_INF/lib folder. This would allow you to override the cache configuration available in the coherence-web-spi and also provide the "tangosol-coherence-override.xml" for Coherence.

The above mentioned steps can also be used when you don't want your EAR/WAR(s) to use the Session objects of other EAR/WAR(s). In this way, you will be able to create multiple clusters with different configuration suited for different applications

No comments:

Search This Blog