掲示板

jGroups caching with custom service builder

thumbnail
9年前 に Bart Simpson によって更新されました。

jGroups caching with custom service builder

Liferay Master 投稿: 522 参加年月日: 11/08/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?
9年前 に Oliver Bayer によって更新されました。

RE: jGroups caching with custom service builder

Liferay Master 投稿: 894 参加年月日: 09/02/18 最新の投稿
Hi Bart emoticon,

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

HTH Oli
thumbnail
9年前 に Bart Simpson によって更新されました。

RE: jGroups caching with custom service builder

Liferay Master 投稿: 522 参加年月日: 11/08/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.