Combination View Flat View Tree View
Threads [ Previous | Next ]
Mithun Salinda
Issue with ehcache in the liferay cluster
September 17, 2013 5:08 AM

Mithun Salinda

Rank: New Member

Posts: 12

Join Date: March 9, 2012

Recent Posts


Need help with ehcache in liferay cluster environment.

We are trying to set up liferay cluster with two nodes. And to enable ehcache in the cluster we did below configurations but still cache replication is not happening.
Details are as follows,

In both nodes we use liferay CE-ga3, with Jboss 7(Is it only possible in EE?)
We are using a mysql database, both database and document library are shared for two nodes. And both are working properly.

In the class path(~liferayhome/jboss-7.1.1/standalone/deployments/ROOT.war/WEB-INF/classes) we created a folder called ehcache and copied below files
Got above files from ehcache folder in portal-impl.jar file.

And set the paths and following configurations in file and placed it in liferay home folder.


documentlibrary configs and db configs

In both nodes cache is working but cache replication wont happen. Ones we edit a page from one node and save the changes, the other node will not update. It uses the old page from that nodes cache. But if we restart that node, it shows the new page with changes. So i think single node cache is happening but cache replication wont happen. What could be the reason for this issue? And what is the normal process to check the ehcache in cluster to make sure it is hapaning?

Thanks for your time,
Alpesh Bhavsar
RE: Issue with ehcache in the liferay cluster
September 19, 2013 11:09 PM

Alpesh Bhavsar

Rank: New Member

Posts: 17

Join Date: April 18, 2012

Recent Posts

Hi Mithun,

Did you deployed "ehcache-cluster-web.war" ?
Gunta Dalecka
RE: Issue with ehcache in the liferay cluster
November 11, 2013 5:48 AM

Gunta Dalecka

Rank: New Member

Posts: 4

Join Date: November 7, 2013

Recent Posts

So, did you succeed to configure session replication with Community Edition version of Liferay?
I also face problems with session replication configuration in clustered environment, however we use Liferay bundled with Tomcat. I've described problem details in this post.