Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-884

Portal level polling mechanism for portlets

    Details

      Description

      This improvement adds a portal level polling mechanism that portlets can use. More specifically, the chat portlet no longer does it's own polling and has been updated to use the new polling mechanism.

      liferay-portlet.xml now has:

      <!--
      The poller-processor-class value must be a class that implements
      com.liferay.portal.kernel.poller.PollerProcessor and is triggered by the
      JavaScript class Liferay.Poller. It allows a portlet to use polling to be
      notified of data changes. See the Chat portlet for a real world implementation.

      See:

      http://docs.liferay.com/portal/5.2/javadocs/portal-kernel/com/liferay/portal/kernel/poller/PollerProcessor.html
      -->
      <!ELEMENT poller-processor-class (#PCDATA)>

      Implementing this class abstracts out polling mechanism by allowing the portal to route messages between a web site and a portlet. It allows notifications to go both ways. The implementation of the polling itself can be done either via regular polls or long polls or anything else. This refactor abstracts that problem out.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-ee EE Support
              Reporter:
              samuel.kong Samuel Kong
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  5.1 EE SP2 (5.1.5)
                  5.2 EE SP1 (5.2.5)