MANOVINAYAK AYYAPPAN 12 Years Ago Great !! :-) !!!Please write more on Caching, as it is quite difficult to understand the bigger picture to start off. I have been struggling with EhCache for past 2 weeks.Thanks Please sign in to reply. Reply as... Cancel
Florencia Gadea 12 Years Ago Hi Jorge!Great article. I hope the next entry explains a lot more. What performance test suite do you use or recommend? Please sign in to reply. Reply as... Cancel
rafa sojo 12 Years Ago Una sugerencia.Este blog podria ser multidioma, o por lo menos tener una versión en castellano Please sign in to reply. Reply as... Cancel
Gerardo Travesedo 12 Years Ago Muy buen articulo! Todo queda muy claro. Gracias de parte de los que aun somos unos novatos! Please sign in to reply. Reply as... Cancel
MANOVINAYAK AYYAPPAN 12 Years Ago I am currently facing some EhCache Replication issue with My 6.0.6 implementation.I would like to know which of the following Cache would be used, for a custom entity object.L1 or L2.Say I created a Custom Entity Object and retrieve it using the CustomEntityLocalService from my front end, which Cache will be used L1 or L2. Please sign in to reply. Reply as... Cancel Mario Lavarreda MANOVINAYAK AYYAPPAN 11 Years Ago Hi Manovinaya, as explained by Jorge: "Level 1 is used to cache objects retrieved from the database within the current datababase session. In the case of Liferay a session is tied to an invocation to a service layer. So when the frontend layer (or a web service) invokes a service a db session is opened and reused until the service method returns. All operations performed until that point will share the L1 cache so the same object won't be retrieved twice from the database."Ehcache is used to manage the 2nd level cache. Second level cache allows to mantain a object reference across multiple calls from your front end. Please sign in to reply. Reply as... Cancel
Mario Lavarreda MANOVINAYAK AYYAPPAN 11 Years Ago Hi Manovinaya, as explained by Jorge: "Level 1 is used to cache objects retrieved from the database within the current datababase session. In the case of Liferay a session is tied to an invocation to a service layer. So when the frontend layer (or a web service) invokes a service a db session is opened and reused until the service method returns. All operations performed until that point will share the L1 cache so the same object won't be retrieved twice from the database."Ehcache is used to manage the 2nd level cache. Second level cache allows to mantain a object reference across multiple calls from your front end. Please sign in to reply. Reply as... Cancel
Ramkumar Chandran 11 Years Ago Hi jorge,It is a great series on liferay architectureCould share some knowledge on Workflow Framework part of the liferay? Please sign in to reply. Reply as... Cancel
Shiva Gokaram 11 Years Ago Great !!.Is there a part 2 of this Blog. Please sign in to reply. Reply as... Cancel Jorge Ferrer Shiva Gokaram 11 Years Ago Not yet, sorry. I got too caught up with the 6.2 release.But I plan to continue with this blog series pretty soon. Please sign in to reply. Reply as... Cancel
Jorge Ferrer Shiva Gokaram 11 Years Ago Not yet, sorry. I got too caught up with the 6.2 release.But I plan to continue with this blog series pretty soon. Please sign in to reply. Reply as... Cancel
Christophe Cariou 11 Years Ago Hi Jorge,waiting your next part about caching. In the meantime, can you give us some links where we can find explanations about the front end (mainly) an service layers caching mechanisms ?For a proposal, I have to argue on the caching management in Liferay...Thanks Please sign in to reply. Reply as... Cancel
Vipin Bardia 10 Years Ago Hi Jorge,Got a chance to write next series of this article? Please sign in to reply. Reply as... Cancel Jorge Ferrer Vipin Bardia 10 Years Ago Hey Vipin,Sorry I got side track and never found the time to continue.I do plan to blog more about Liferay's architecture later this year but with a focus on the new modular architecture of Liferay 7. I hope you find that info useful as well. Please sign in to reply. Reply as... Cancel Vipin Bardia Jorge Ferrer 10 Years Ago Sure Will wait for the article. Please sign in to reply. Reply as... Cancel
Jorge Ferrer Vipin Bardia 10 Years Ago Hey Vipin,Sorry I got side track and never found the time to continue.I do plan to blog more about Liferay's architecture later this year but with a focus on the new modular architecture of Liferay 7. I hope you find that info useful as well. Please sign in to reply. Reply as... Cancel Vipin Bardia Jorge Ferrer 10 Years Ago Sure Will wait for the article. Please sign in to reply. Reply as... Cancel
Vipin Bardia Jorge Ferrer 10 Years Ago Sure Will wait for the article. Please sign in to reply. Reply as... Cancel
Marcello Torriani 9 Years Ago Hi Jorge, you say: "One final important aspect is that all of these caches use an underlying cache provider to manage the objects in memory. By default Liferay uses ehcache to do that, but it is also possible to change the caching provider through portal.properties. The configuration is done within hibernate-clustered.xml which defines and configures several cache areas."But also that. "Besides using Hibernate, Liferay's code also performs some complex database queries directly (although reusing the database conneciton). For these queries Liferay has its own Entity and Query cache."My question is: is it possible to switch from ehcache implementation to another one both for hibernate and for liferay level cache? Please sign in to reply. Reply as... Cancel Jorge Ferrer Marcello Torriani 9 Years Ago It is potentially possible, although you will probably have to do a bit of research since it's not a common operation and thus it's not documented.Out of curiosity, what implementation are you looking to use instead of ehcache? Please sign in to reply. Reply as... Cancel
Jorge Ferrer Marcello Torriani 9 Years Ago It is potentially possible, although you will probably have to do a bit of research since it's not a common operation and thus it's not documented.Out of curiosity, what implementation are you looking to use instead of ehcache? Please sign in to reply. Reply as... Cancel