Fórum

jGroups caching with custom service builder

thumbnail
Bart Simpson, modificado 9 Anos atrás.

jGroups caching with custom service builder

Liferay Master Postagens: 522 Data de Entrada: 29/08/11 Postagens Recentes
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, modificado 9 Anos atrás.

RE: jGroups caching with custom service builder

Liferay Master Postagens: 894 Data de Entrada: 18/02/09 Postagens Recentes
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, modificado 9 Anos atrás.

RE: jGroups caching with custom service builder

Liferay Master Postagens: 522 Data de Entrada: 29/08/11 Postagens Recentes
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.