留言板

IPC in Hook

A M,修改在12 年前。

IPC in Hook

Junior Member 帖子: 66 加入日期: 11-9-8 最近的帖子
Hi Guys,

I am developing two hooks. I have already done IPC between two portlats but now i am want to communicate between two hooks. Is it possible? Any guidelines?
thumbnail
Leo Pratlong,修改在12 年前。

RE: IPC in Hook

Expert 帖子: 363 加入日期: 10-7-6 最近的帖子
No sorry, it's not possible. Hook is not an "autonomous" plugin. It allows to override JSP, to define some events for your portal. So it's not a portlet. And so, Inter-Portlet Communication is not available for it.
On the other hand, you can use IPC on the Liferay default portlets through the hook.

Nevermind, you can share resources using sessions (HttpSession, PortletSession or some custom sessions you can build and put on a Ext plugin).
A M,修改在12 年前。

RE: IPC in Hook

Junior Member 帖子: 66 加入日期: 11-9-8 最近的帖子
Hi Leo,
Thanks for your reply. I am totally new to Liferay so can you please can i use IPC on the Liferay default portlets through the hook?

Thanks.