Skip to main content

Posts

Showing posts with the label Coherence

Configure Oracle Coherence as a second level(L2) cache

It's republish of my blog from another domain. The post was published at May 13 2008. A few weeks before Oracle corporation bought company tangosol, which have a caching framework for enterprise application. Coherence might be used as a second level cache or as Cache store in any enterprise solution. How to use coherence as a Cache store would be found in the following URL:http://www.oracle.com/technology/pub/articles/vohra-coherence.html&nbsp . In the current blog we will configure a coherence L2 cache using Hibernate (Hibernate - a well known ORM framework). First, download oracle Coherence from the following URL http://www.oracle.com/technology/software/products/ias/htdocs/coherence.html Using Coherence as L2 cache we only need 3 libraries out of others: coherence.jar, coherence-hibernate.jar, tangosol.jar. Install them in local maven2 repositories. Now we have to configure hibernate.cfg.xml which should be in application classPath as follows: By default Coherence will use c