Forums de discussion

jGroups caching with custom service builder

thumbnail
Bart Simpson, modifié il y a 9 années.

jGroups caching with custom service builder

Liferay Master Publications: 522 Date d'inscription: 29/08/11 Publications récentes
I am trying to implement cluster based caching. The mechanism Liferay relies on is using MultiVMPoolUtil to cache objects on separate nodes and they become available on the other nodes. However when serialized objects are put to cache which contain custom created service models , it fails with exception that model classNotFound. As I understand it's because jGroups is in Root (Portal context) and my model exists in a plugin (custom portlet) context.

Is there a way to use MultiVMPoolUtil for such a case?
Oliver Bayer, modifié il y a 9 années.

RE: jGroups caching with custom service builder

Liferay Master Publications: 894 Date d'inscription: 18/02/09 Publications récentes
Hi Bart emoticon,

maybe moving the service.jar from your plugin to the "lib\ext" folder will solve this issue.

HTH Oli
thumbnail
Bart Simpson, modifié il y a 9 années.

RE: jGroups caching with custom service builder

Liferay Master Publications: 522 Date d'inscription: 29/08/11 Publications récentes
Hi Oliver,
Thanks for the quick insight. I am afraid it doensn't do the trick. It still isn't able to get access to the actual modelImpl. I tried exploring the option of some classloader magic, the limitation is that it's the jgroup's code that I wont' be able to change. Looking for some example in Liferay's code where an external plugin (out of root) uses MultiVMPoolUtil.