留言板

jGroups caching with custom service builder

thumbnail
Bart Simpson,修改在9 年前。

jGroups caching with custom service builder

Liferay Master 帖子: 522 加入日期: 11-8-29 最近的帖子
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,修改在9 年前。

RE: jGroups caching with custom service builder

Liferay Master 帖子: 894 加入日期: 09-2-18 最近的帖子
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,修改在9 年前。

RE: jGroups caching with custom service builder

Liferay Master 帖子: 522 加入日期: 11-8-29 最近的帖子
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.