Using Terracota with Liferay

What is Terracota? #

See http://www.terracotta.org/confluence/display/orgsite/What+Is+Terracotta

Terracota and Liferay #

Using Terracota for Liferay installations allows setting up large clustering environments, with good performance.

Instructions #

You can find up to date detailed instructions in:

  • http://www.terracotta.org/confluence/display/wiki/Liferay
  • http://svn.terracotta.org/svn/forge/projects/labs/liferay/trunk/README.txt

Related Articles #

Clustering

High Availability Guide

0 Attachments
7715 Views
Average (0 Votes)
Comments

Showing 6 Comments

Nirav Bharat Naik
2/17/09 10:44 PM

Hi,

I am looking for the wiki page,

http://www.terracotta.org/confluence/display/wiki/Liferay

Actuallly I am using Liferay 5.2 SE and trying to build cluster.

Could anybody please help me?

Regards,
Nirav.

Edan Idzerda
3/4/09 8:12 AM

Liferay offers Terracotta clustering support as part of their Professional Edition, so some old resources for configuring Terracotta and Liferay have "disappeared"

I have it working, just for session clustering though: http://www.liferay.com/web/guest/community/forums/-/message_boards/message/23065­09

Sebastien Diot
9/13/09 2:57 AM

Have you now got past "just for session clustering"? If you have "complete solution", could you post it please (here or somewhere else public like on the Terracotta website) ?

Harshal Shah
5/27/10 1:55 PM

Hi Nikki,

the terracotta wiki page is deleted. In liferay 5.2.3 there was a property in portal.properties. But that too is missing in liferay 6.0.

I am able to integrate liferay with terracotta by following the steps below
1. placing the terracotta-session-1.0.1.jar in folder C:\Liferay-Portal\Tomcat\lib
2. adding <Valve className="org.terracotta.session.TerracottaTomcat60xSessionValve" tcConfigUrl="localhost:9510"/> to C:\Liferay-Portal\Tomcat\conf\context.xml
3. Uncommenting the terracotta property in portal.properties file.
hibernate.cache.provider_class=com.liferay.portal.dao.orm.hibernate.Terraco­ttaCacheProvider
and
net.sf.ehcache.configurationResourceName=/ehcache/hibernate-terracotta.xml
Add these properties to portlet-ext.properties
This is only for liferay 5.2.3
If you need more information send mail to harshal82@gmail.com

Harshal Shah
5/27/10 2:26 PM

did you get hold of complete solution to integrate life ray and terracotta. I want to monitor ecache entries in terracotta i.e hits and misses. please let me know if you have found the solution.

Murat ÇOLAK
7/8/10 7:13 AM

I didn't see ecache entries too. Do you find anything. And liferay 6 there is not /ehcache/hibernate-terracotta.xml.