留言板

Portlet communication

Mario Leggio,修改在14 年前。

Portlet communication

New Member 发布: 1 加入日期: 10-3-8 最近的帖子
Hi. I have 2 portlets running in 2 differente pages from 2 differente browsers. Is there a mechanism to make communication between them?
In particular, the first portlet submit some information into a database and the second portlet (running in another browser in another computer) should receive a notification about the new availabel data... something similar to the notification you receive in Facebook when a friend of yours write a comment about a your post.

Any suggestion? Thank a lot
Dave Willis,修改在14 年前。

RE: Portlet communication

Expert 帖子: 301 加入日期: 09-7-13 最近的帖子
It sounds like you need a socket listener. I personally haven't done this with Liferay but maybe this will help you get started: http://www.javafaq.nu/java-example-code-517.html